startLockTask() without request user action
问题 I want to activate startLockTask() without any request for users. So at first i read this Device Administration and create small sample application. In result i have my application in device administrators list but when i call startLockTask() it still execute not in silent mode. When i'm trying to call it so: DevicePolicyManager myDevicePolicyManager = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE); String[] packages = {this.getPackageName()}; myDevicePolicyManager