Sorry this isn't possible -- when the screen is locked the lock screen gets
focus and no input events are delivered to the app.

On Tue, Nov 24, 2009 at 5:41 PM, skyhigh <[email protected]> wrote:

> I have an application that is playing audio, and I would like to allow
> the listener to toggle between pause and play while the screen is
> locked, as it is a hassle to have to unlock the screen in order to
> pause the audio playback.
>
> Is there any way to monitor for KeyEvent.KEYCODE_DPAD_CENTER while the
> the screen is locked?  I have been looking through the documentation
> but have not found any information on how to do this.
>
> --
> 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