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

前端 未结 3 1640
执念已碎
执念已碎 2021-01-02 06:05

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

Cant find anything?

Any idea?

相关标签:
3条回答
  • 2021-01-02 06:33

    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.

    0 讨论(0)
  • 2021-01-02 06:34

    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);
    
    0 讨论(0)
  • 2021-01-02 06:34

    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

    0 讨论(0)
提交回复
热议问题