How to respect network use settings in Android

前端 未结 3 1107
傲寒
傲寒 2020-12-13 16:04

My app performs some backgound data collection and I\'m adding support for the user network preferences, such as performing background updates and data roaming. I have the

3条回答
  •  清歌不尽
    2020-12-13 16:56

    Like @inazaruk, I a also trying to prevent (for the user possibly expensive) network transfers when roaming or downloading images while on GPRS only. Therefore in Zwitscher I've implemented a NetworkHelper that checks against users preferences on romaing and minimal network state; https://github.com/pilhuhn/ZwitscherA/blob/master/src/de/bsd/zwitscher/helper/NetworkHelper.java The matching preferences are here: https://github.com/pilhuhn/ZwitscherA/blob/master/res/xml/preferences.xml#L30

提交回复
热议问题