[android-developers] Re: How to find network type is 2G/3G/4G exactly

2012-04-17 Thread ashiq sayyad
I think u can write some logic based on the approximate bit rates assumed for edge,gprs,umt,etc Regards, Ashiq On 17 April 2012 16:40, Bunty syed wrote: > HI, > > I want to find if the connected network falls under 2G ,3G or 4G.. > > I went through ConnectivityManager / TelephonyManager but

[android-developers] Regarding application created data access on android phone

2012-03-27 Thread ashiq sayyad
Hi, Hope all doing well. My application created on database programatically.. On emulator,I can see the created database using File Explorer under data folder .. But on device I cant see my app data.. Thanks & Regards, Ashiq Sayyad -- You received this message because you are subscribe

[android-developers] Regarding custom text view drawing on screen directly

2012-03-16 Thread ashiq sayyad
de some more methods before calling onDraw... Thanks & Regards, Ashiq Sayyad -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from

[android-developers] Problem in getting the correct time & date from mobile in android

2012-03-13 Thread ashiq sayyad
depending upon the correct time zone of that region.. Same case for particular date usage... Thanks & Regards, Ashiq Sayyad -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@go

[android-developers] Regarding android.intent.action.PACKAGE_ADDED,android.intent.action.PACKAGE_REMOVED

2012-03-09 Thread ashiq sayyad
.. But the problem is my receiver gets notification for any apps installed or deleted on phone.. Is there any way to get notification only for certain predefined packages(apps ) installation or uninstallation.. Thanks & Regards, Ashiq sayyad -- You received this message because you

Re: [android-developers] Re: Disabling cut copy paste menu on edittext

2012-03-07 Thread ashiq sayyad
March 8, 2012 2:41:47 PM UTC+8, ashiq sayyad wrote: >> >> HI, >> >> Hope all doing well.. >> >> In android,if we long press any edittext widget,menu with >> cut,copy .paste will be popped up. >> >> Is there any way to stop that via code for all

[android-developers] restartPackage("some package name") api not working on device

2012-03-07 Thread ashiq sayyad
; Thanks & Regards, Ashiq Sayyad -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@g

[android-developers] Disabling cut copy paste menu on edittext

2012-03-07 Thread ashiq sayyad
HI, Hope all doing well.. In android,if we long press any edittext widget,menu with cut,copy .paste will be popped up. Is there any way to stop that via code for all edittext widgets in the application Thanks & Regards, Ashiq Sayyad -- You received this message because you are subscribe

[android-developers] Regarding apk installation programatically & getting callback for successful installation.

2012-03-01 Thread ashiq sayyad
on user selection means whether installation is successful or declined... Do I need to specify some key in the intent to acieve this Thanks & Regards, Ashiq sayyad -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To p

[android-developers] PackageManager installPackage method throwing IllegalArgumentException

2012-02-27 Thread ashiq sayyad
permission in the manifest:: Thanks & Regards, Ashiq Sayyad -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send em

Re: [android-developers] How to restrict ContentProviders to be used for some apps

2012-02-23 Thread ashiq sayyad
hidhar wrote: > Check out the content provider permissions @ > http://developer.android.com/guide/topics/security/security.html#declaring > > > Thanks, > Shashidhar > > On Thu, Feb 23, 2012 at 4:38 PM, ashiq sayyad wrote: > >> I have created one custom content provider.

[android-developers] How to restrict ContentProviders to be used for some apps

2012-02-23 Thread ashiq sayyad
I have created one custom content provider.I want only my apps should use my custom content provider and the outside apps should not be able to use it even if they know the URI of the content provider. Is it possible??? Regards, Ashiq -- You received this message because you are subscribed to

[android-developers] Re: SQLite sharing between apps

2012-02-22 Thread ashiq sayyad
I tried sharing sqlite between apps using android:sharedUserId concept.Its working fine.. Thanks all for ur replies Regards, Ashiq On 22 February 2012 19:15, zyrikby wrote: > Hi. > > Content provider allows you to share databases between applications. If > you do not have any additional req

Re: [android-developers] AutoInstall apk without prompting package installer to the user

2012-02-22 Thread ashiq sayyad
Thanks for the reply.. On 22 February 2012 19:25, TreKing wrote: > On Wed, Feb 22, 2012 at 6:24 AM, ashiq sayyad wrote: > >> I want to download & install apk without informing to the user.Is >> it possible ?? >> > > No. Not without modifying the firmwa

[android-developers] AutoInstall apk without prompting package installer to the user

2012-02-22 Thread ashiq sayyad
Hi, I want to download & install apk without informing to the user.Is it possible ?? I tried with following code but its showing package installer.. Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(apkUri, "application/vnd.android.package- archive"); startActivity(intent);

Re: [android-developers] Re: SQLite sharing between apps

2012-02-22 Thread ashiq sayyad
Thanks.I will try On 22 February 2012 16:52, Chrystian Vieyra wrote: > android:sharedUserIdThe name of a Linux user ID that will be shared with > other applications. By default, Android assigns each application its own > unique user ID. However, if this attribute is set to the same value fo

Re: [android-developers] Re: SQLite sharing between apps

2012-02-22 Thread ashiq sayyad
Ya it can be shared via content providers but is there any way to share it directly without using content providers.. Chrystian Vieyra-- Can u plz elaborate what is user id..its id of sqlite database??? On 22 February 2012 16:36, Chrystian Vieyra wrote: > You could share the database via conte

[android-developers] SQLite sharing between apps

2012-02-22 Thread ashiq sayyad
Hi all, Hope doing well..I have following doubt.. I have created one sqlite database in one application.I want to access that sqlite database in some other application.. Is it possible to access? Thanks & Regards, Ashiq -- You received this message because you are subscribed to the Google Grou

Re: [android-developers] Android native implementation for force stop in setting-->manage applications

2012-02-09 Thread ashiq sayyad
nski wrote: > > > On Thu, Feb 9, 2012 at 1:01 PM, ashiq sayyad wrote: > >> Actually activity.finish() will finish the current activity & app will >> show the previously stacked activity.But i want to finish all activities & >> also stop all backgr

Re: [android-developers] Android native implementation for force stop in setting-->manage applications

2012-02-09 Thread ashiq sayyad
ebruary 2012 20:00, TreKing wrote: > On Thu, Feb 9, 2012 at 4:17 AM, ashiq sayyad wrote: > >> I want to achieve force stop functionality in my app on close button >> click. >> > > Why? > > >

[android-developers] Android native implementation for force stop in setting-->manage applications

2012-02-09 Thread ashiq sayyad
pp launches the previous activity.. Thanks & Regards, Ashiq Sayyad -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this gro

Re: [android-developers] Re: DevicePolicyManager LockNow problem

2012-01-20 Thread ashiq sayyad
Thanks all. For earlier version devices, I tried dispatching power button key event via code to lock the phone.But its not dispatching the key event for. Thanks & Regards, Ashiq Sayyad On 20 January 2012 14:17, Mukesh Srivastav wrote: > @Albnok, > > I had tried decompiling

Re: [android-developers] How to manually dispatch key event for power button in android

2012-01-19 Thread ashiq sayyad
... Thanks & Regards, Ashiq Sayyad On 20 January 2012 02:37, Kristopher Micinski wrote: > Why are you trying to do this anyway? > > kris > > On Thu, Jan 19, 2012 at 3:56 PM, Mark Murphy > wrote: > > This would do you no good. Not only can't you attack the device by &g

Re: [android-developers] Re: DevicePolicyManager LockNow problem

2012-01-19 Thread ashiq sayyad
Thanks.I will check that. One more is there any way to implement lock on earlier android versions(before 2.2) Thanks & Regards. Ashiq Sayyad On 20 January 2012 12:00, albnok wrote: > You might have missed something in the implementation - it should > cause the Device Administrators

[android-developers] DevicePolicyManager LockNow problem

2012-01-19 Thread ashiq sayyad
ment screen lock functionality for below 2.3 devices as there in no direct APIS for tat.. Awaiting for help Thanks & Regards, Ashiq Sayyad -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to

[android-developers] How to manually dispatch key event for power button in android

2012-01-19 Thread ashiq sayyad
Hi, I want to dispatch key event for Power button programatically.I tried following line of code but its not working.. dispatchKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN,KeyEvent.KEYCODE_POWER)); But this is not working.. Any help on this most welcome.. Thanks & Regards, Ashiq Sa