Code example for DevicePolicyManager

Methods: isAdminActivewipeData

0
	static public boolean performWipe(Context context) {
		 
		mDPM = Menu.getDPM();
		mDeviceAdmin = Menu.getDAS();
		 
		boolean active = mDPM.isAdminActive(mDeviceAdmin);
        if (active) 
        { 
        	mDPM.wipeData(0);
        } 
        else 
        { 
        	return false; 
        } 
	 
		return true; 
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE