java.lang.SecurityException:不允许启动服务Intent

时间:2012-09-13 08:29:07

标签: android android-c2dm

我从谷歌播放的用户那里得到以下例外:

java.lang.SecurityException: Not allowed to start service Intent { act=com.google.android.c2dm.intent.REGISTER pkg=com.google.android.gsf (has extras) } without permission com.google.android.c2dm.permission.RECEIVE

我已经将我的应用程序上市了8个月,这是我第一次遇到这个例外。任何人都可以告诉我,这个异常是如何突然发生的,这是关于什么的。我在网上搜索但找不到任何东西。请帮忙。

1 个答案:

答案 0 :(得分:2)

由于清单中没有为此指定意图过滤器 服务默认为android:exported为false。当你设置 android:exported =“true”其他应用程序将能够启动 服务。

http://developer.android.com/guide/topics/manifest/service-element.html#exported