有没有办法对我来说,显示在锁定屏幕上一个定制的消息? [英] Is there a way for me to show a customized message on the lock screen?

查看:86
本文介绍了有没有办法对我来说,显示在锁定屏幕上一个定制的消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用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-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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆