Monday, February 22, 2010

[android-developers] services x threads

Hi,

I'm trying to understand the idea behind the Services.

If it runs in the program's thread, why not create just a separate
thread (or AsyncTask) to do the job?

Can a service keep running in the background? For example, i want to
create a task that will continuously be polling data from a server,
even if the main application is not running. Can this be achieved with
a Service?

thanks

guich

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