What is the Intent to call “Choose screen lock” screen?

为君一笑 提交于 2019-12-18 15:49:12

问题


I cant find any refrence to call the Intent screen "Choose screen lock".

Cant find anything?

Any idea?


回答1:


EDIT:

It turns out that this had been added in Version 2.2 of Android.
Please ee pleczko's answer below.


Before Android 2.2 there is no intent to do this.




回答2:


You can call action DevicePolicyManager.SET_NEW_PASSWORD to send user to lock screen settings fragment (firstly he will have to type current password/pattern for secure lock types):

Intent intent = new Intent(DevicePolicyManager.ACTION_SET_NEW_PASSWORD);
startActivity(intent);



回答3:


There is none. You can view all possible Intents in android's source code: https://github.com/android/platform_packages_apps_settings/blob/master/AndroidManifest.xml



来源:https://stackoverflow.com/questions/18560076/what-is-the-intent-to-call-choose-screen-lock-screen

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