How to lock the Screen customly? Just like WaveSecure in Android

扶醉桌前 提交于 2019-12-08 01:10:38

问题


I want to do a demo just like WaveSecure, which win Android Develop Challenge 2 with a third place. Now I have a problem in locking the screen customly, so I want to know how WaveSecure achieve its locking function, as the following picture show:

When the mobile is locked, WaveSecure can require customer to input their own password. So I think WaveSecure must replace Android's original locking function.

And I also google it, but I didn't find anything helpful. I only find two packages may be helpful. They are:

  • android.app.KeyguardManager
  • android.os.PowerManager

But after I reading the Android Docs, I still can't have an idea on it.

Can you help me? Thx:)


回答1:


I have been searching for an answer to the exact same question for a while. Apparently, after 2.0 onwards the device manager privileges for the app level were removed. But with Froyo - 2.2 the device policy manager is revealed granting us developers a multitude of administrative level controls.

http://developer.android.com/guide/topics/admin/device-admin.html



来源:https://stackoverflow.com/questions/2385365/how-to-lock-the-screen-customly-just-like-wavesecure-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!