if receiver registered in activity then you need register/unregister
while handling resume/pause. Better check Activity life cycle.

But if you want to receive the broadcasts even when you app/activity
is paused then use a service thread.

On Dec 13, 9:22 pm, Sandesh <[email protected]> wrote:
> Hi,
>
> I have created an application in android. I have one activity which
> invokes my app in a thread through a service.
> In that thread, I register an intent receiver dynamically. But
> sometimes I keep getting an error saying that intent receiver is
> leaked. I searched on the forums & it said that I would have to
> unregister it when in pause mode.??
>
> How to go about this. The idea is to invoke a intentReceiver(Broadcast
> receiver) then keeps listening for my SMS messages.

-- 
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

Reply via email to