Reputation: 17
I have a doubt in Android services. I wrote a simple application with a service that runs continuously and upload data to server. My doubt is that will the service stop when I receive a phone call? Will it run in background when I make phone call or will it stop. Please give me an answer.
Thank you.
Upvotes: 1
Views: 948
Reputation: 13511
The short answer is no. Unless the available phone memory was already low to begin with because you have a lot of apps running in the background, only then might Android forcibly close the service to accommodate the phone call.
Upvotes: 0
Reputation: 2231
Services run on the background no matter what happen on the screen. It only stops if you stop it using stop or exit function of its main application or you stop the services in Settings. Cheers,
Upvotes: 1
Reputation: 604
Activities stop, however services do not. http://developer.android.com/guide/components/services.html
Upvotes: 1