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 Proce***ecord {xxxx} (pid=xxxx, uid=xxxx)
not exported from uid xxxx


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



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


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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章