Unable to start activity异常的解决方案

当时我正在测试一个用户身份验证组件。使用的是android内置的Accounts API。当时的情况是,需要在App2中调用App1的用户身份验证组件,但是不知道为什么登入界面总是无法正常开启。后来我在LogCat中发现了下面这段信息:

java.lang.RuntimeException: Unable to start activity ComponentInfo {xxxx}: java.lang.SecurityException: Permission Denial: starting Intent {xxxx} from ProcessRecord {xxxx} (pid=xxxx, uid=xxxx) not exported from uid xxxx

这是由于什么导致的?解决方案是什么?如果你对此有兴趣,请移步到我的blog,地址如下:

地址:http://kohoh1992.github.io/ActivityNotExported/

哦,对了。忘记补充了,这里的文章全部都是我个人blog上的副本。如果你对我的blog有兴趣,请移步至 http://kohoh1992.github.io

时间: 2024-08-27 13:56:35

Unable to start activity异常的解决方案的相关文章

java.lang.RuntimeException: Unable to instantiate activity ComponentInfo异常总结

java.lang.RuntimeException: Unable to instantiate activity ComponentInfo异常总结 做android开发的可能都碰到"java.lang.RuntimeException: Unable to instantiate activity ComponentInfo"过这个异常, 有时是Conslole 会出现Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFOR

android异常Unable to instantiate activity ComponentInfo解决方法

本人最近调试一个调试一个程序,jar包都添加好了,程序没有任何错误信息,但是运行到手机,却打印出这样的错误信息: 08-29 20:07:52.584: E/AndroidRuntime(4517): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.zhy.csdndemo/com.zhy.csdndemo.MainActivity}: java.lang.ClassNotFoundExce

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ex.activity/com.ex.activity.LoginActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ex.activity/com.ex.activity.LoginActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class 异常解决方案: 是因为设置background的图片太大了,造成了内存溢出,在Activity设置onCreate

bug_ _java.lang.RuntimeException: Unable to start activity ComponentInfo{包名/类名}

写这篇博文,我顶着很大的压力,贴出来会引来网友的一片鄙视,不贴我又觉得对不起Android SDK研发团队. 本着对全世界Android无产者负责的态度,今天不得不指出Android编译时隐藏的很深的一个Bug. 以下为我的TestActivity类: public class TestActivity extends Activity { private static final String TAG = "TestActivity"; private Button button;

Android开发中java.lang.RuntimeException: Unable to start activity ComponentInfo{xxx}

Android开发中java.lang.RuntimeException: Unable to start activity ComponentInfo{xxx}: java.lang.NullPoi 错误信息字符串:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.first/com.first.Game}: java.lang.NullPointerException 一般都会在Activity  o

Android开发中java.lang.RuntimeException: Unable to start activity ComponentInfo{xxx}: java.lang.NullPoi

错误信息字符串:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.first/com.first.Game}: java.lang.NullPointerException 一般都会在Activity  onCreate()方法里的setContentView(XXX)发生此错误,网上查阅了很多原因,大概有四种重要可能的原因: 原因一:xxx的错误,若为R.layout.main  那么应该是main.x

Hadoop常见异常及其解决方案

1.Shell$ExitCodeException 现象:运行hadoop job时出现如下异常: 14/07/09 14:42:50 INFO mapreduce.Job: Task Id : attempt_1404886826875_0007_m_000000_1, Status : FAILED Exception from container-launch: org.apache.hadoop.util.Shell$ExitCodeException: org.apache.hadoo

Fragment not attached to Activity 异常

1.关于Fragment(XXFragment) not attached to Activity 异常.出现该异常,是因为Fragment的还没有Attach到Activity时,调用了如getResource()等,需要上下文Content的函数.解决方法,就是等将调用的代码写在OnStart()中.网上还有几处这样的参考:http://stackoverflow.com/questions/10919240/fragment-myfragment-not-attached-to-activ

Unable to create request (bad url?) 解决方案

今天写一个测试demo,遇到如下问题: Error Domain=ASIHTTPRequestErrorDomain Code=5 "Unable to create request (bad url?)" UserInfo=0x69ba0f0 {NSLocalizedDescription=Unable to create request (bad url?)} 功能是为了测试分包下载,大概流程:请求URL,服务器返回一套URLList,自己分别去请求每个url最后把得到得数据进行拼