> I am trying to implement an application which requires polling the server
> every few seconds. what is the best way to proceed??
Poll less frequently, on a user-defined interval.
Better yet, use some sort of long-poll mechanism (Web sockets, Comet,
etc.) or a push engine (C2DM, Xtify, Urban Airship).
> I have a problem with Asynctask as i may need to create a Asynctask for each
> request?? any other solutions or comment is appreciated..
Unless these polls are supposed to happen in parallel, I would single
manually-constructed background thread.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
Android App Developer 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 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
No comments:
Post a Comment