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

2019-02-09 17:02发布

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

Cant find anything?

Any idea?

enter image description here

3条回答
狗以群分
2楼-- · 2019-02-09 17:47

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

查看更多
等我变得足够好
3楼-- · 2019-02-09 17:48

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.

查看更多
看我几分像从前
4楼-- · 2019-02-09 17:49

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);
查看更多
登录 后发表回答