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

前端 未结 3 1664
执念已碎
执念已碎 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: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);
    

提交回复
热议问题