2011年12月7日 星期三

[Android] startActivity by external component

Error Message
Uncaught handler: thread main exiting due to uncaught exception
java.lang.SecurityException: Permission Denial: starting Intent { cmp=..../.TestActivity } from ProcessRecord{44710d48 4955../10053} (pid=4955, uid=10053) requires null

Occurred when call A activity from B activity of B application.


Solution

Add this intent-filter in B activity will solve this error.

    



* Reference
- http://hi.baidu.com/spare_h/blog/item/27c25edc800e5ff577c63857.html

沒有留言:

張貼留言