做一个应用程序,显示为一个Android锁屏? [英] Make an app show up as an Android lock screen?
问题描述
我还没有找到一个明确的答案,这还没有。许多应用程序可以帮助您建立/无根安装自定义锁屏等这就像安装一个应用程序。我发现这在开发指南:<一href="http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_SHOW_WHEN_LOCKED" rel="nofollow">http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_SHOW_WHEN_LOCKED
I haven't found a definite answer to this yet. Lots of apps let you build/install custom lock screens without root, etc. It's just like installing an app. I found this in the dev guide: http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_SHOW_WHEN_LOCKED
我认为,虽然这是在运行它会运行就像任何其他应用程序。不过,我将如何释放它让用户去他们家的屏幕?我还需要处理像电话来电?
I assume that while this is running it would run just like any other app. But how would I "release" it to let the user get to their home screen? And do I need to handle things like incoming phone calls?
推荐答案
您无法(至少如果你遵守规则)取代安全的锁屏。你可以有一个锁屏样的活动,将显示当手机被锁定。使用FLAG_SHOW_WHEN_LOCKED,但是请注意,你的活动不能是透明的 - 即它不能出现一个对话框
You can't (at least if you follow the rules) replace the secure lock screen. You can have a lock-screen like activity that will show up when the phone is locked. Use FLAG_SHOW_WHEN_LOCKED, but notice that your activity cannot be transparent - i.e. it cannot be a dialog.
这篇关于做一个应用程序,显示为一个Android锁屏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!