Object service = getSystemService ("statusbar"); try { Class <?> statusBarManager = Class.forName ("android.app.StatusBarManager"); Method expand = statusBarManager.getMethod ("disable",int.class); //getMethod("collapse")似乎有点效果 expand.invoke (service,0x00000001); } catch (Exception e) { e.printStackTrace(); } 权限: <uses-permission android:name="android.permission.STATUS_BAR"/> <uses-permission android:name="android.permission.DISABLE_STATUS_BAR"/> 并使用系统签名
讨论地址:http://topic.csdn.net/u/20120113/23/b7190556-c212-42a6-9565-7ff197cf5d58.html