I am wanting to deactivate my application as an administrator from Java by launching an Intent, since with the following code, it launches the Intent to Activate it
Intent intent = new Intent(DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN);
intent.putExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN, angelDevicePolicyAdmin);
intent.putExtra(DevicePolicyManager.EXTRA_ADD_EXPLANATION, "Administración del dispositivo");
startActivity(intent);
I would like to launch this same activity but to deactivate it when activated, the inverse of the above But I do not see something that you do not contrary to this
DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN