How can I solve this error ? I do not understand the reason behind this error ?
code
devicePolicyManager.setCameraDisabled(demoDeviceAdmin, false);
change
to
In your AndroidManifest.xml.
AndroidManifest.xml
Because devicePolicyManager.setCameraDisabled(demoDeviceAdmin, false);requires API 14+.
Note: (by Joachim Isaksson)
though that this will raise the "bar" for running the app from Android 2.3.3 to Android 4.0.