On Wed, Jun 29, 2011 at 5:42 AM, Suraj <[email protected]> wrote: > 1. When I close the local service connection (using stopService()) I > get an error message saying > "The application has stopped unexpectedly. Please Try Again" > Why is this happening?
Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at the stack trace associated with your error. > 2. My Ultimate aim is to close the local service and the remote > service should keep running. > Is this possible? Not by binding. > If so how? Use startService() to start services that will continue running. That being said: -- Unless you are writing several applications, or are exposing APIs to third-party applications, you do not need a remote service of any form, let alone one involving binding -- Do not start services that "keep running" unless you have a clear and precise plan for when and how you will stop that service from running -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9.9 Available! -- 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

