Sorry for the misunderstanding but i am not using service. As i said in the initial post "The Application contains one activity which includes 2 buttons ‘Start’ and ‘Stop’"
On Apr 28, 5:02 pm, Mark Murphy <mmur...@commonsware.com> wrote: > zohar lerman wrote: > > This is my temporary solution but i want to be able to listen the > > phone event even when the application is closed ( until the user will > > ask to stop the this service) > > From your original post, you do not have a service. If you have a > service, unregister the listener in onDestroy() of the service. > > You might also consider switching to watch for the corresponding > broadcast Intents, instead of keeping a service in memory all the time. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > _The Busy Coder's Guide to Android Development_ Version 3.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+unsubscr...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en