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/commonsguy http://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