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

后端 未结 6 1125
感动是毒
感动是毒 2021-01-06 08:53

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

code

devicePolicyManager.setCameraDisabled(demoDeviceAdmin, false);         


        
6条回答
  •  余生分开走
    2021-01-06 09:35

    change

    
    

    to

    
    

    In your 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.

提交回复
热议问题