ActivityManager: java.lang.SecurityException 问题
2011-06-07 12:16
363 查看
最近在调试程序的时候经常出现ActivityManager: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.xxxxx.xxxxx/.ui.xxxxxxx } from 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在Manifest文件里写了两份,去掉一份后,终于可以正常运行了。
注:此问题还会引起,在手机端点击程序图标时,会提示程序未安装在手机上。
后来看到:
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在Manifest文件里写了两份,去掉一份后,终于可以正常运行了。
注:此问题还会引起,在手机端点击程序图标时,会提示程序未安装在手机上。
相关文章推荐
- ActivityManager: java.lang.SecurityException 问题
- 关于7.0手机爱贝支付转圈问题-java.lang.SecurityException: getSubscriberId: Neither user 10191 nor current process
- 有关Android 6.0权限问题java.lang.SecurityException: Permission Denial
- JAVA刚碰见的问题( java.lang.SecurityException: The jurisdiction policy files are not signed by a trusted s
- 运行jar包出现问题:java.lang.SecurityException: JCE cannot authenticate the provider BC
- java.lang.SecurityException: No permission to write APN settings问题原因
- android7.0闪退问题java.lang.SecurityException: MODE_WORLD_READABLE no longer supported
- 关于ActivityManager: java.lang.SecurityException: Permission Denial错误
- java.lang.SecurityException: Prohibited package name: java.util 问题分享
- java.lang.SecurityException: Prohibited package name: java.demo 定位问题
- DWR 报错:Error: java.lang.SecurityException, Session Error 和 Allocate exception for servlet 问题的解决办法
- javaMail邮件问题:java.lang.SecurityException: SHA1 digest error for com/sun/mail/smtp/SMTPTransport.class
- java.lang.SecurityException: No permission to write APN settings问题的定位小结
- 关于ActivityManager: java.lang.SecurityException: Permission Denial错误
- java.lang.SecurityException: No permission to write APN settings问题的定位小结
- Exception in thread "main" java.lang.SecurityException问题解决方法
- JAVA刚碰见的问题( java.lang.SecurityException: The jurisdiction policy files are not signed by a trusted signer)
- Android问题分享:DownloadManager基本用法及发生java.lang.SecurityException异常的解决办法
- android7.0闪退问题java.lang.SecurityException: MODE_WORLD_READABLE no longer supported
- Exception in thread "main" java.lang.SecurityException: Prohibited package name: java.io问题解决