Monday, July 12, 2010

Re: [android-developers] Best Approach to implementing Polling in Android

It is possible to check if Wifi is enabled, and if so, wait a few
seconds for it to connect (or time out) before initiating a network
connection.

-- Kostya

12.07.2010 15:36, Mark Murphy пишет:
> Be careful of connectivity changes. If you woke up the device, WiFi
> will be off, and so if you try to access the Internet immediately, you
> will probably wind up with 3G (or whatever other cellular data the
> device uses). It is possible that your polling operation will be
> interrupted by WiFi turning on. I have not run experiments in this
> area yet myself, but based on errors I see with the Android Market
> client and StreamFurious Pro, that is my interpretation of what is
> going on.
>
>


--
Kostya Vasilev -- 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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate