[英]java.lang.SecurityException: Not allowed to start service Intent
I am getting the following exception from the users on google play: 我从Google Play的用户那里收到以下异常:
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
Its been 8 months that I have uploaded my app on market and this is the first time I have got this exception. 我已经在市场上上传了我的应用程序已经8个月了,这是我第一次遇到这种例外情况。 Can anyone tell me, how this exception came all of a sudden and what this is about.
谁能告诉我,这种异常是如何突然发生的,这是怎么回事。 I searched the net but couldn't find anything.
我在网上搜索,但找不到任何东西。 Please help.
请帮忙。
Since there were no intent filters specified in the manifest for this Service the default for android:exported was false. 由于清单中没有为此服务指定意图过滤器,因此android:exported的默认值为false。 When you set android:exported="true" the other application will be able to start the Service.
当您设置android:exported =“ true”时,其他应用程序将能够启动服务。
http://developer.android.com/guide/topics/manifest/service-element.html#exported http://developer.android.com/guide/topics/manifest/service-element.html#exported
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.