securityexception权限拒绝不允许发送广播

时间:2014-02-25 08:00:01

标签: android

我在其他版本上的应用程序运行正常,但KitKat我的应用程序因调用时间崩溃而导致错误:securityexception permission denial not allowed to send broadcast

请告诉我如何解决此错误。

1 个答案:

答案 0 :(得分:1)

How to fix this issue for KITKAT?

该代码从未适用。幸运的是,Android(最终)采取措施阻止应用程序欺骗更多类似的系统广播。

If you want to tell Android to index a file you put on external storage, either use MediaScannerConnection or ACTION_MEDIA_SCANNER_SCAN_FILE.

来源:https://stackoverflow.com/a/21469533/1683141