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

2019-02-09 17:29发布

问题:

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