刚在硬件上搬上了2.3,在status bar加几个软按键也就是back/home等,结果一发送广播就弹出ERROR框the applicantion status bar (process com.android.systemui)has stopped unexpectedly.please try againLOGCAT:
I/StatusBarView(  166): menu!!
I/StatusBarView(  166): SendKeyIntent!!这里发了
然后公共库中error了以下
D/AndroidRuntime(  166): Shutting down VM
W/dalvikvm(  166): threadid=1: thread exiting with uncaught exception (group=0x40015560)
E/AndroidRuntime(  166): FATAL EXCEPTION: main
E/AndroidRuntime(  166): java.lang.NullPointerException
E/AndroidRuntime(  166):  at com.android.systemui.statusbar.StatusBarView.sendKeyIntent(StatusBarView.java:102)
E/AndroidRuntime(  166):  at com.android.systemui.statusbar.StatusBarView.access$000(StatusBarView.java:40)
E/AndroidRuntime(  166):  at com.android.systemui.statusbar.StatusBarView$3.onTouch(StatusBarView.java:151)
E/AndroidRuntime(  166):  at android.view.View.dispatchTouchEvent(View.java:3881)
E/AndroidRuntime(  166):  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942)
E/AndroidRuntime(  166):  at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:942)
E/AndroidRuntime(  166):  at android.view.ViewRoot.deliverPointerEvent(ViewRoot.java:2194)
E/AndroidRuntime(  166):  at android.view.ViewRoot.handleMessage(ViewRoot.java:1878)
E/AndroidRuntime(  166):  at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(  166):  at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(  166):  at android.app.ActivityThread.main(ActivityThread.java:3647)
E/AndroidRuntime(  166):  at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(  166):  at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime(  166):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
E/AndroidRuntime(  166):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
E/AndroidRuntime(  166):  at dalvik.system.NativeStart.main(Native Method)
D/dalvikvm(  166): GC_CONCURRENT freed 269K, 51% free 2797K/5703K, external 1757K/1844K, paused 1ms+13ms2.3以前的版本我用的好好的。。
不过2.3把status bar等直接弄成了一个systemui的APP了。
我用的广播
/* Intent intent = new Intent(Intent.ACTION_ICONKEY_CHANGED);   
    intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);   
    intent.putExtra("keycode",   keycode);   
    mContext.sendBroadcast(intent);
 是不是不能用
mContext.sendBroadcast(intent);
了?求开导~