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.
In my case, with long-press, nothing happens... Thanks On 9 Nov, 13:57, Mark Murphy <mmur...@commonsware.com> wrote: > On Tue, Nov 9, 2010 at 5:08 AM, Mandave <davide.ma...@gmail.com> wrote: > > I have a problem with this BroadcastReceiver. It works only if the > > phone is not in stand-by mode. And I cannot understand the reason. > > > <receiver > > android:name="it.mandave.headset.receiver.MediaButtonIntentReceiver" > > android:enabled="true"> > > <intent-filter> > > <action > > android:name="android.intent.action.MEDIA_BUTTON" > > /> > > </intent-filter> > > </receiver> > > > How can I let it work also in stand-by mode (so when the display is > > turned off)? > > AFAIK, that is not possible. When the device is asleep (a.k.a., > "stand-by mode"), it does not respond to buttons, except the power > button. Besides, since the device is asleep, there is no code running > to respond to the button, since the CPU is powered down. > > -- > 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en