Saturday, November 5, 2011

Android How can i call API periodically?

If you want to call that API after 30 second again and again


use Service with Broadcast receiver.
Service will do your Task in Background but will not provide any UI so you need to register with Broadcast receiver.

Check this Sample , this sample show how to repeat a task and update UI using Service and Broadcast receiver.
Also refer this tutorial for further reference.


1 comment:

  1. I am really impressed with your writing skills and also with the layout on your blog.
    Is this a paid theme or did you customize it yourself? Anyway keep up the excellent quality writing,
    it is rare to see a nice blog like this one today.
    Also see my site :: A Few Techniques For Talking Tom You're Able To Use Soon

    ReplyDelete