[android-developers] Re: MEDIA_BUTTON BroadcastReceiver in stand-by mode
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 <mmur...@commonsware.com> wrote:
> On Tue, Nov 9, 2010 at 8:09 AM, Mark Murphy <mmur...@commonsware.com> wrote:
> > On Tue, Nov 9, 2010 at 8:04 AM, Mandave <davide.ma...@gmail.com> 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 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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home