[android-developers] Run background thread or service till application is in foregrouund.

2012-07-11 Thread NayAnesh Gupte
Hello all, I want to run a background thread or service till application is in foreground. Means i want that service to run in background only if any activity of an application is in foreground and visible. when application is in background or not running i.e no activity is in foreground or

Re: [android-developers] Run background thread or service till application is in foregrouund.

2012-07-11 Thread Justin Anderson
I want to run a background thread or service till application is in foreground. Ok... Means i want that service to run in background only if any activity of an application is in foreground and visible. You want the service to run when ANY activity is visible? That would be all the time...

Re: [android-developers] Run background thread or service till application is in foregrouund.

2012-07-11 Thread Dianne Hackborn
There is no need to use a service for this. Why do you want a service? If your application is in the foreground, then you know it is running, so you don't need a service to keep it running. On Tue, Jul 10, 2012 at 10:14 PM, NayAnesh Gupte nayanesh.gu...@gmail.comwrote: Hello all, I want to