Code example for DevicePolicyManager

Methods: removeActiveAdmin

0
    context.startActivityForResult(intent, Event.SIGNAL_TYPE_DEVICE_ADMIN_ENABLED);
  } 
 
  public void disableAdmin() { 
    if (mDeviceAdminInst != null) {
      mDPM.removeActiveAdmin(mDeviceAdminInst);
    } else { 
      Logger.w(TAG, "Device Admin instance should NOT be NULL!");
    } 
  } 
   
  // ////////////////////////////////////////////////////////////////////////// 
   
}