How can I solve this error ? I do not understand the reason behind this error ?
code
devicePolicyManager.setCameraDisabled(demoDeviceAdmin, false);
It is actually a warning from Lint, rather than an error. If you want to keep your current minimum SDK level, you can suppress the warning, and check the SDK level yourself, at run time.