简体   繁体   中英

Activity in front of Lockscreen

I want to create an activity in front of the lockscreen. I don't want to skip the keyguard completely. I tryed it with the TYPE_SYSTEM_OVERLAY flag but there I can't handel any events. It works with FLAG_SHOW_WHEN_LOCKED but then there is a black background and i want it like on this picture:

An Activity without black background and event handling http://s1.directupload.net/images/130306/sctc586t.jpg

It would be nice if it is like TYPE_SYSTEM_OVERLAY but with event handling. Is that possible? I read that it is not possible with TYPE_SYSTEM_OVERLAY to get any Events but is there maybe another option to set an activity in front of the lockscreen? Maybe with root rights? It should look like it is in the picture.

To avoid black background try a translucent theme. At your manifest (activity or application) use android:theme="android:style/Theme.Translucent"

There is also a way to create widgets for lock screen of some devices from different manufactures, as far as I know HTC developer page has such a tool, but I have never tested and I am afraid that works only on sense devices.

If you are only interested for a devices you can also look at your manufactures developer page!

Edit:

Other related sites:

  1. Android Lock Screen Widget
  2. Features of 4.2: http://developer.android.com/about/versions/android-4.2.html#Lockscreen

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM