开发者

how to develop a replacement for the android lock screen [duplicate]

This question already has an answer here: Custom Lock Screen Implementation Techniques (1 answer) Closed 7 years ago.

I need to put my app on the lock screen (android 2.2)!

I think there are two options for do this:

  1. Develop an app to replace android's lock screen. This app whould be called when the off button is pressed.
  2. 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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜