[android-developers] Keeping a service alive till the phone is switched off

2010-11-23 Thread David_Fisher
Hi, once we call the startService() method, can we keep the service alive until its explicitly stopped by the user? I want my service to stay alive until the phone is switched off. How can i do this? The idea is that when I receive an incoming call, I want to start recording and once the status

Re: [android-developers] Keeping a service alive till the phone is switched off

2010-11-23 Thread Mark Murphy
On Tue, Nov 23, 2010 at 9:22 AM, David_Fisher davidfsh...@gmail.com wrote: Hi, once we call the startService() method, can we keep the service alive until its explicitly stopped by the user? If you use startForeground(), that will help prevent the OS from stopping your service. However: --