Often my mobile network is turned off and I just use a Wi-Fi hotspot.

If the phone is not plugged in, the Wi-Fi connection will go to sleep
after some length of inactivity.

I could be wrong, but a call to
ConnectivityManager.getActiveNetworkInfo().isConnected() does not wake
the connection.

So, what is the best way to wake the connection?

In general, I'm looking to write an isConnected() method which will
return true/false, optionally blocking returning until a wakeable
internet connection is awoken.

-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to