问题描述
我正在使用 DevicePolicyManager 制作一个可以锁定设备的应用程序,我想知道如果我使用 DevicePolicyManager 锁定设备,是否有办法在锁定屏幕上显示自定义消息.
推荐答案
应该有一种方法可以在日志屏幕上方显示某种 Activity(就像 Winamp-App 那样).
问题描述
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.
推荐答案
There should be a way to show some kind of Activity above the Log-Screen (like the Winamp-App does it).
I found the FLAG_SHOW_WHEN_LOCKED-flag which seams to do just that.
Also, I found this recourse which illustrates how this works.