android.app.RemoteServiceException: can't deliver broadcast
2
at android.app.ActivityThreadMethodAndArgsCaller.run(RuntimeInit.java:516)
8
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
解:
//register your receiver like this
LocalBroadcastManager.getInstance(this).registerReceiver(mMessageReceiver,
new IntentFilter("custom-event-name"));
// unregister like this
LocalBroadcastManager.getInstance(this).unregisterReceiver(mMessageReceiver);
// broadcastlike this
LocalBroadcastManager.getInstance(this).sendBroadcast(intent);
深入分析
todo