See ConnectivityManager and getActiveNetworkInfo(). On Thu, Apr 21, 2011 at 12:28 PM, Simon <[email protected]> wrote: > Hi, > > I have hunted around, but can't seem to find an answer to this. I am > working on an app that will be using local storage through the SQLite > DB, but will also be syncing to a remote server. If the device is > online, I would like to be able to sync to the remote server, and if > it is offline, I would like to store an event that indicates there is > data to send once the device is online again. But I can't seem to > find in the API how to query for the current online/offline status of > the device. Is there something like this available? > > Thanks, > > Simon > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en >
-- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.0 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

