如何制作Android解锁屏幕应用程序
我正在尝试开发 Android 解锁屏幕应用程序。我已经下载了一些解锁屏幕应用程序并进行了测试。我终于找到了一个应用程序。这就是 指纹屏保 。这正是我想要的。我的意思是我想更换图案解锁屏幕应用程序。我正在想如何替换Android图案解锁屏幕应用程序。
我用谷歌搜索了很多,但我找不到如何做到这一点。有人写道这是一个黑客。即使Android也不支持,我非常想知道如何做到这一点。
如果有人知道,请给我一个线索。预先非常感谢。
谢谢。
I am trying to develop unlock screen app for Android. I have downloaded some unlock screen app and tested. I finally found one app. That is Fingerprint Screensaver . It is what I exactly want. I mean I wish to replace the pattern unlock screen app. I am wandering how to replace the Android pattern unlock screen app.
I have googled a lot, but I could not find how to do it. Somebody wrote it is a hack. Even the Android does not support, I strongly wish to know how to do that.
If someone knows about it, please give me a clue. Thanks in advance a lot.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过将以下意图过滤器添加到您的 Activity 的 AndroidManifest.xml 文件中来创建自定义解锁屏幕:
这是一种 hack,因为会弹出一个对话框,询问用户要使用哪一个(您的或默认的)。更糟糕的是,如果用户不小心将您的锁定屏幕选择为选择器中的默认主屏幕,他们可能会严重弄乱他们的设备。他们最终可能不得不恢复出厂设置。
创建自定义锁屏的唯一安全方法是修改 Android 平台本身。这就是 HTC Sense 或 Motoblur 等 OEM 皮肤创建自定义锁定屏幕的方式。
You can create a custom unlock screen by adding the following intent filter to the AndroidManifest.xml file for your Activity:
This is a hack because a dialog box will pop up asking the user which one he wants to use (yours or the default). Worse, if the user accidentally selects your lock screen as the default home screen in the chooser, they could seriously mess up their device. They might end up having to do a factory reset.
The only safe way to create a custom lockscreen is to modify the Android platform itself. This is how OEM skins like HTC Sense or Motoblur create custom lock screens.