Ok. After a little bit of debugging I know that the Service runs inside the background thread. (the methods that I call inside the service after binding to it)
But after that is it really that difficult to stop that background thread in onPause? Even calling the deprecated stop() doesn't stop the thread. On 22 Aug., 20:19, "Mark Murphy" <[EMAIL PROTECTED]> wrote: > > (I thought that starting a service > > leads to a new thread in which the service runs) > > At least in M5, with a default setup for the service, and the service in > the same application, it does not run on a separate thread. If you call > into the service from an activity, and you're calling from the activity's > main thread, the activity will block until the service returns (or until > the Grim Reaper determines your activity has been unresponsive for too > long and kills it off). > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > _The Busy Coder's Guide to Android Development_ Version 1.1 Published! --~--~---------~--~----~------------~-------~--~----~ 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] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

