> i want to develop an application which checks periodically for new
> data on a server over a http-connection.
> Should i do this in a Thread or is it better to do this in a service?

Both. Use a service that does the work in an AsyncTask or other form of
background thread.

> The checking should also continue when the user is going back to the
> Android-Main-Menu, that means the user is exiting the Activity, and
> when he starts the Activity again it can work with the collected data.
> As far as i read, is this feature only possible with remote-Services,
> so that i must use Inter-Process-Communication?

No. Have your activity call startService() to start up the service to do
the HTTP operation. Then, when the service is done with the HTTP, have it
call stopSelf() to shut itself down.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to