On Wed, Aug 10, 2011 at 1:56 PM, Alexey Zakharov <alexey.v.zaha...@gmail.com> wrote: > UPDATE: I need to receive updates even if user has switched to another > application or receive a call. UI also should be updated. So when user > switch back to the application he should see updated view.
Assuming you are interesting in connecting to the REST service to find out if something is waiting, have a look into AC2DM, also known as Android Cloud to Device Messaging, or Android Push Messages, and have your server tell the app to poll the REST service. Fairly easy to implement, and better than polling a remote service continually (wasting data and battery) when there is probably nothing new. Also, you should read about Services. Cheers -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en