[android-developers] How to disable any android application.

2010-09-14 Thread piyu
Hi,

  I want to create api in android source code to dissable installed
android application ( not uninstalled).Is there any pointer for this
task? By using this api in system application user can select desired
application to dissable and enable when it needed.
For example I have installed paid weather application on android phone
which is running background thread to get updated report from server
over http.which i want to disable on roaming and again unable it when
come back.but dont want to uninstall application from phone.

thanks in advance
piyush

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How to disable any android application.

2010-09-14 Thread { Devdroid }
On 14 September 2010 13:38, piyu spk2p...@gmail.com wrote:
 Hi,

  I want to create api in android source code to dissable installed
 android application ( not uninstalled).Is there any pointer for this
 task? By using this api in system application user can select desired
 application to dissable and enable when it needed.

There's no clean way to do that.

 For example I have installed paid weather application on android phone
 which is running background thread to get updated report from server
 over http.which i want to disable on roaming and again unable it when
 come back.but dont want to uninstall application from phone.

Contact weather app developer and report bug to him so they can
fix that.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How to disable any android application.

2010-09-14 Thread Kostya Vasilyev
 There are two user-level (i.e. present in regular Android UI) options 
for this:


- Settings - Accounts  sync: disable Background data. This sets an 
option that applications are supposed to check before doing background 
data synching. If the weather app doesn't check this setting, report it 
to the developer as a bug, as { Devdroid } suggested.


The API for this is:

http://developer.android.com/reference/android/net/ConnectivityManager.html#getBackgroundDataSetting()

- Settings - Wireless  networks - Mobile networks: disable Data 
roaming. This disables all data connections when the phone is roaming. 
There are supposedly some issues with this setting, though:


http://code.google.com/p/android/issues/detail?id=2379

-- Kostya

14.09.2010 19:13, { Devdroid } пишет:

  For example I have installed paid weather application on android phone
  which is running background thread to get updated report from server
  over http.which i want to disable on roaming and again unable it when
  come back.but dont want to uninstall application from phone.

Contact weather app developer and report bug to him so they can
fix that.




--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en