11

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

Cant find anything?

Any idea?

enter image description here

user1163234
  • 2,407
  • 6
  • 35
  • 63
  • Can you change the accepted answer to this one: https://stackoverflow.com/a/26256974/238753 – Sam Jun 28 '20 at 02:35

3 Answers3

38

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);
Patrick
  • 33,984
  • 10
  • 106
  • 126
pkleczko
  • 807
  • 9
  • 6
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

flx
  • 14,146
  • 11
  • 55
  • 70
2

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.

bricklore
  • 4,125
  • 1
  • 34
  • 62