Permission Denial: starting Intent 解决办法

来源:互联网 发布:linux chgrp命令 编辑:程序博客网 时间:2024/06/05 16:46

我碰到的问题,是因为   android:process="com.android.phone" 导致的。使用广播的形式让其独立。


下面是别人的接近方案:

天才是各个时代都有的;可是,除非待有很是的事项产生,冲动群众,是有天才的人呈现,不然赋有天才的人就会僵化。你在调试法度时可能会呈现ActivityManager: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0 x10000000 cmp=com.xxxxx.xxxxx/.ui.xxxxxxx } null (pid=-1, uid=-1) requires null如许的题目。

一个没有弘远幻想的人,就象一只没有同党的鸟。看了一篇文章说到如下:

The java.lang.SecurityException you are seeing is because you may enter two entries pointing to same activity. Remove the second one and you should be good to go.

也就是说,当前的Activity在AndroidManifest.xml文件里反复写了两个,你只要删除此中一个,就可以正常运行了。

注:此题目还会引起,在手机端点击法度图标时,会提示法度未安装在手机上。

首要参考:http://blog.csdn.net/wchinaw/article/details/6662375狄德罗

原创粉丝点击