
发现一个receiver的onreceive函数重复调用了两次
仔细分析了一下

原来自己在隐式调用的时候
在manifest中给receiver添加了一个category

android:name="android.intent.category.DEFAULT"
而自己的filter里添加了系统自带的
action android:name="android.intent.action.DOWNLOAD_COMPLETED"
拿掉android:name="android.intent.category.DEFAULT"就好了
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/ruanjian/article-53000-1.html
然后对伊拉克说虽然自己根本不愿意也没能力负责伊拉克一辈子