views:

275

answers:

1

I would like to perform an activity at the key guard screen, but the only way I can find to do so is to disable the key guard, do my activity, then re enable the key guard. This would be ok if it didn't cause the key guard screen to flash off and on (disable makes it disappear then re enable brings it back). I am wondering how I can perform an activity with it still being displayed? Kinda like how when the alarm goes off it shows a pop-up which is displayed over the key-guard screen?

+1  A: 

You can check out Alarm clock source on Android git, maybe that will help, also Music player does something similar to what you mentioned. So my advice is download snapshots of Music Player app and AlarmClock app from android git, and search those files for KeyGuardManager.

http://android.git.kernel.org/?p=platform/packages/apps/Music.git;a=snapshot;h=HEAD;sf=tgz

http://android.git.kernel.org/?p=platform/packages/apps/AlarmClock.git;a=snapshot;h=HEAD;sf=tgz

Ivan