如何开发 Android 锁屏的替代品
我需要将我的应用程序放在锁定屏幕上(android 2.2)!
我认为有两种选择可以做到这一点:
- 开发一个应用程序来替换 Android 的锁屏。当按下关闭按钮时将调用此应用程序。
- 将我的应用程序按钮插入 Android 的实际锁屏中,这样,即使屏幕被锁定,我的应用程序也可以工作,最终,我的应用程序可以解锁屏幕。
我不知道该怎么做,但我知道这是可能的,因为可以下载一些音乐播放器,并且音乐播放器选项位于锁定屏幕中。
有人可以帮我吗? 谢谢。
I need to put my app on the lock screen (android 2.2)!
I think there are two options for do this:
- Develop an app to replace android's lock screen. This app whould be called when the off button is pressed.
- Insert my app button into android's actual lockscreen, so, my app would work, even if the screen is locked, and eventually, my app could unlock the screen.
I don't know how to do it, but I do know it is possible, since some music players can be downloaded and the music player options are in the lockscreen.
Can anybody help me out?
thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
(1) 是完全可行的,并且有许多锁屏替代应用程序可用。
(2) 将取决于您谈论的锁屏是什么以及您的应用程序的用途。固件锁屏通常不允许使用小部件。他们最多有一种与通话/短信日志和音乐播放器交互的方法,但仅此而已。
因此,除非您的应用程序执行这两者之一,否则您唯一的选择几乎就是 (1)。
(1) is totally feasible and there are many lockscreen alternatives apps available.
(2) will depend on what lockscreen are you talking about and what is what your app does. Firmware lockscreens do not allow usually widgets in them. At most, they have a method to interact with the call/sms log and the music player, but that's it.
So, unless your app does one of those two, your only option is pretty much (1).