接收non-ordered广播时,如果调用方法终止广播:
this.abortBroadcast();
会报异常:
BroadcastReceiver trying to return result during a non-ordered broadcast
解决:
改发有序广播
this.sendOrderedBroadcast(intent, null);
接收non-ordered广播时,如果调用方法终止广播:
this.abortBroadcast();
会报异常:
BroadcastReceiver trying to return result during a non-ordered broadcast
解决:
改发有序广播
this.sendOrderedBroadcast(intent, null);