[android-developers] Re: Service launching multiple times

2008-12-18 Thread Dianne Hackborn
A particular Service component is managed as a global singleton in the system, that is there will only ever be one instance of a Service component created at a time. The core Service functionality allows you to tell the system about work being done by your application outside of the normal activit

[android-developers] Re: Service launching multiple times

2008-12-18 Thread JP
On Dec 18, 2:41 am, sukumar wrote: > hi, > > Thats not my doubt. My service needs to read some data using htttpget, > this action is performed onStart method of the service. While service > is in middle of reading data from web. If someone starts the service > again. What happens to the task st

[android-developers] Re: Service launching multiple times

2008-12-18 Thread sukumar
hi, Thats not my doubt. My service needs to read some data using htttpget, this action is performed onStart method of the service. While service is in middle of reading data from web. If someone starts the service again. What happens to the task started first? Will the service ends the first task

[android-developers] Re: Service launching multiple times

2008-12-17 Thread JP
Here's my 2 cents on Services: I personally do not execute anything inside a service. A Service runs in the main Thread of the hosting process, so any real "work" would interfere with the user experience. I use Service however to provide isolation from the main Activity, and start Threads that cov