As Mark stated correcly, you can't modify the original except with an
own ROM.

However, you can respond to ACTION_SCREEN_OFF or ACTION_SCREEN_ON
(note you must register it manually with registerReceiver, it's not
enough to add it in the manifest!) to show your own Activity.
You can either use
getWindow().addFlags( WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED )
to let it stay above the system's lock screen, or use the
KeyguardManager to temporarily disable it (doesn't work for pattern
lock).

However, this "own lock screen" will not be exactly like the system
lock screen. It's impossible for a common app to lock the status bar
and the Home button. Some lock screen replacements work around the
Home button issue by letting themselves to be made the default home
screen and then forwarding to the proper home screen, which must be
chosen in the lock screen app. Not very elegant, but working...
Also, if you want a slider, you've got to write your own code or copy
from the Android source code. Sliders aren't public UI elements.

-- 
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