I know how to checking if internet is available or not in the activity, my requirement is, actually i am storing some values in DB when the device in offline ( no internet), when it comes to online have to pass DB values to the server with out user interactivity. how can i achieve this. i got this example How to check the Internet Connection periodically in whole application? but it's working only for one activity , how to make it as global.
I know how to checking if internet is available or not in the activity, my requirement is, actually i am storing some values in DB when the device in offline ( no internet), when it comes to online have to pass DB values to the server with out user interactivity. how can i achieve this. i got this example How to check the Internet Connection periodically in whole application? but it's working only for one activity , how to make it as global.
I know how to checking if internet is available or not in the activity, my requirement is, actually i am storing some values in DB when the device in offline ( no internet), when it comes to online have to pass DB values to the server with out user interactivity. how can i achieve this. i got this example How to check the Internet Connection periodically in whole application? but it's working only for one activity , how to make it as global.
U need to implement the concept of services in your app . This service will run in background and will pass data to server according to need Check this link for your reference http://developer.android.com/guide/topics/fundamentals/services.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.