Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Call requires API level 14 (current min is 10):

Tags:

android

How can I solve this error ? I do not understand the reason behind this error ?

code

devicePolicyManager.setCameraDisabled(demoDeviceAdmin, false);

error :

Call requires API level 14 (current min is 10): android.app.admin.DevicePolicyManager#setCameraDisabled DevicePolicyDemoActivity.java /DevicePolicyDemoActivity/src/com/marakana/android/devicepolicydemo line 62 Android Lint Problem

like image 288
user1983122 Avatar asked Dec 20 '22 11:12

user1983122


1 Answers

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.

like image 185
Philip Sheard Avatar answered Jan 02 '23 08:01

Philip Sheard