android 设置状态栏

private void lockedStatusBar(){ 
        StatusBarManager sbm = (StatusBarManager)this.getSystemService(Context.STATUS_BAR_SERVICE); 
        sbm.disable((StatusBarManager.DISABLE_EXPAND)); 


想要设置状态栏不可展开,设置了 

 
 

两个权限 仍然提示错误 
12-24 08:48:33.142: ERROR/AndroidRuntime(2206): Caused by: java.lang.SecurityException: StatusBarManagerService: Neither user 10066 nor current process has android.permission.STATUS_BAR. 

求解 


你可能感兴趣的:(android 设置状态栏)