You can use timer task.. Start it once n schedule it with 5*60*1000 i.e 5
minutes.

Sent from samsung mobile
On Oct 9, 2012 12:34 PM, "Archana" <[email protected]> wrote:

> Hi, I have 2 nanoHTTPD servers running in 2 instances of the emulator. The
> clients in both emulators should periodically poll to find if file got
> updated in server(every 5 minutes may be). Please let me know how  to
> implement this(as I am relatively new to Android)? Should i use Alarm
> Manager or create a Service?
>
> Any help is appreciated.. Thank you!
>
> --
> 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

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

Reply via email to