有没有办法对我来说,显示在锁定屏幕上一个定制的消息? [英] Is there a way for me to show a customized message on the lock screen?
问题描述
我用DevicePolicyManager做一个应用程序,可以锁定设备,并想知道是否有一种方式来显示在锁定屏幕上的自定义消息,如果我锁定装置与DevicePolicyManager。
I'm using DevicePolicyManager to make an app that can lock devices and was wondering if there was a way to show a custom message on the lock screen if I lock the device with DevicePolicyManager.
推荐答案
应该有一种方式来显示某种活动上面的日志屏(如Winamp的,应用程序做的话)。
There should be a way to show some kind of Activity above the Log-Screen (like the Winamp-App does it).
我找到了<一href="http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_SHOW_WHEN_LOCKED"><$c$c>FLAG_SHOW_WHEN_LOCKED$c$c>-flag该接缝能够做到这一点。
I found the FLAG_SHOW_WHEN_LOCKED
-flag which seams to do just that.
另外,我发现这种追索这说明它是如何工作。
Also, I found this recourse which illustrates how this works.
这篇关于有没有办法对我来说,显示在锁定屏幕上一个定制的消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!