禁止android显示状态栏

来源:互联网 发布:前端开发算程序员吗 编辑:程序博客网 时间:2024/05/20 06:05
不让整个系统显示状态栏(信号格、运营商、时间、蓝牙、电量、wifi等),打开下面路径下文件。注释注释掉代码。
alps\frameworks\base\packages\SystemUI\src\com\android\systemui\ SystemUIService.java
public void onCreate() {
//注掉以下代码
 /* boot Systemui Service HashMap<CLASS, Object> components = new HashMap<CLASS, Object>();
 final int N = SERVICES.length;
 for (int i=0; i cl = SERVICES[i];
 Log.d(TAG, "loading: " + cl); try { mServices[i] = (SystemUI)cl.newInstance();
 } catch (IllegalAccessException ex) {
 throw new RuntimeException(ex); 
} catch (InstantiationException ex) {
 throw new RuntimeException(ex); 
} mServices[i].mContext = this; mServices[i].mComponents = components;
 Log.d(TAG, "running: " + mServices[i]); mServices[i].start(); } */
 }
0 0