No luck with registering broadcast in Java code...


On 9 Nov, 15:02, Mandave <[email protected]> wrote:
> I'm not sure about it...
>
> Maybe I have to register my broadcastreceiver not ion the Manifest,
> but in the java code?
>
> On 9 Nov, 14:12, Mark Murphy <[email protected]> wrote:
>
>
>
>
>
>
>
> > On Tue, Nov 9, 2010 at 8:09 AM, Mark Murphy <[email protected]> wrote:
> > > On Tue, Nov 9, 2010 at 8:04 AM, Mandave <[email protected]> wrote:
> > >> That's very strange, because if I short-press my headset button Play/
> > >> Pause, it starts/stops music of my default player...So I think there
> > >> is a way to let it work.
>
> > > If the music is playing, the device is not asleep (a.k.a., "stand-by 
> > > mode").
>
> > The music player might be holding a PARTIAL_WAKE_LOCK when it is
> > on-screen to enable this functionality.
>
> > The source code to that app is available athttp://source.android.com
> > -- you might want to examine it to see how they are handling the media
> > button.
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > Android App Developer Books:http://commonsware.com/books

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