1

Is there a way to return to my activity which calls the activation of a device-admin?

view story
linux-howto

http://stackoverflow.com – I need to enable a device-admin for my app, it's working like this called from Activity A: Intent intent = new Intent(DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN); intent.putExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN, deviceAdminComponentName); intent.putExtra(DevicePolicyManager.EXTRA_ADD_EXPLANATION, "Your boss told you to do this"); startActivityForResult(intent,1); but i want that after my activity A calls the device-admin-activation prompt and the user says activate, immediately return to the caller-activation. Is there a way to do this? (HowTos)