Services don't take focus input focus -- a service doesn't cause the current window to lose input focus, nor the foreground activity to be paused. If you mean the thread of your activity isn't running, then you may just be doing all your work in the service on the main thread. Please note that a service's callbacks (but not necessarily calls through any IBinder interface it publishes) happen on the main thread. If you want to run on another thread, you'll need to make it yourself.
On Sat, Oct 10, 2009 at 1:21 AM, abhi <[email protected]> wrote: > > Hi, > > I am starting a service from an activity. Once the services starts, > the calling activity loses focus and blocks till the service is > completed. Why is this and is there a way around it to return the > control to the calling activity while the service runs in the > background? > > Thanks, > > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

