Context.registerReceiver() is probably what you are looking for.

On Mon, Jan 11, 2010 at 6:19 PM, Moto <[email protected]> wrote:

> Any help?  Let me know if I'm not making clear what I'm trying to
> do.... :P
>
> On Jan 11, 6:24 pm, Moto <[email protected]> wrote:
> > I'm trying to catch an action like ACTION_HEADSET_PLUG.  But I think
> > it might be too much to set this action on the manifest file.
> >
> > How could I register a listener for this action?  I only need to care
> > about it when my application is running not all the time as I think it
> > would happen when registering it under the manifest file...
> >
> > Thanks!
> > -Moto!
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.
-- 
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