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开发者_Python百科 players can be downloaded and the music player options are in the lockscreen.
Can anybody help me out? thanks.
(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).
精彩评论