[android-developers] Prevent an Android Service from getting destroyed after an unbind

2010-12-20 Thread Kalyan Akella
Hi, I have a scenario which requires the Android service from not getting destroyed when the Activity that started it (through bindService) calls the unbind. Here it goes... Step1: The main activity A, starts and renders the UI which contains some text and a button B. Step2. Inside the

Re: [android-developers] Prevent an Android Service from getting destroyed after an unbind

2010-12-20 Thread Artak Kalantarian
I assume you are calling Bind with Context.BIND_AUTO_CREATE flag to start the system. Try to explicitly call startService before calling bind. Artak On Mon, Dec 20, 2010 at 4:29 PM, Kalyan Akella kalyan.ake...@gmail.com wrote: Hi, I have a scenario which requires the Android service from

Re: [android-developers] Prevent an Android Service from getting destroyed after an unbind

2010-12-20 Thread Kalyan Akella
Thank you the reply. Yes, I'm using BIND_AUTO_CREATE flag to bind to this service. I'll try doing an explicit startService before bindService. I'll post here how it goes. Sincere Regards, Kalyan -- You received this message because you are subscribed to the Google Groups Android Developers