Issue
I'm creating a Device owner app for students,and need to disable statusbar, i have already my app to the Device owner app. using other method of DevicePolicyManager.it ran successfully. but when i use setStatusBarDisabled.it told no such method
05-27 14:08:19.164: E/AndroidRuntime(8066): java.lang.NoSuchMethodError: No virtual method setStatusBarDisabled(Landroid/content/ComponentName;Z)Z in class Landroid/app/admin/DevicePolicyManager; or its super classes (declaration of 'android.app.admin.DevicePolicyManager' appears in /system/framework/framework.jar)
is there any process i missed?
Solution
The setStatusBarDisabled is implemented in API level 23 (Marshmallow 6.0) and not 21/22 (Lollipop 5.0.x)
You can find the documentation at this link.
Answered By - kash
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.