BroadcastReceiver trying to return result during a non-ordered broadcast

接收non-ordered广播时,如果调用方法终止广播:

this.abortBroadcast();

会报异常:

BroadcastReceiver trying to return result during a non-ordered broadcast

解决:

改发有序广播

this.sendOrderedBroadcast(intent, null);
    原文作者:mingzhu_ustc
    原文地址: https://blog.csdn.net/u010037124/article/details/38470035
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞