title: Open Lock screen for android app in setting screen with DevicePolicyManager
body: <pre><code>I'm able to change the password,pin or Pattern from the below code, on Click function of Switch.
  
  
  
  switchPreferenceAppLock.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {
                      @Override
                      public boolean onPreferenceChange(Preference preference, Object newValue) {
                          if (!((Boolean) newValue)) {
  
                          } else {
                              Log.d("Test", "Change to Phone Default Lock");
  
                              Intent intent = new Intent(DevicePolicyManager.ACTION_SET_NEW_PASSWORD);
                          startActivity(intent);
                          return true;
                      }
                  });
              }
  </code></pre>
  
  <p>My purpose is to use the user's phone security factor (like pattern, pin, password) in my app. Like if in my app user wants to do any critical function then security screen will be appeared and will ask to authenticate and after the authentication, i will allow the user to do the functionality.</p>
  
  <p>But It is only used to change the password,I want to set this to lock the phone instead of changing.The Intent DevicePolicyManager.ACTION_SET_NEW_PASSWORD will only be used to change the password.How Can I set the app lock int he same setting screen of my App.</p>