On Sun, Dec 26, 2010 at 7:37 PM, Tim <[email protected]> wrote: > How do I similarly attach an event handler to the button so that when it is > pressed a second time, it shuts the service down? Is there an appropriate > pattern to follow for something like this? >
Start the service again with the same PendingIntent, but include a "Cancel" flag that tells the service to commit suicide. ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices -- 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

