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