Wednesday, April 28, 2010

Re: [android-developers] Re: How to unregister listener after application get closed

zohar lerman wrote:
> First thanks for your quick responses.
> Second I have few more questions
>
> 1. in your second suggestion is it possible ( and if yes how) to end
> the service later ( by user request)

Call stopService().

> 2. in your third suggestion is it possible to start the broadcast
> receiver by demand and the same question as in bullet 1 can i stop it
> later

You would need to use PackageManager to enable and disable your
manifest-registered BroadcastReceiver component.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 2.0 Available!

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment