SecurityException: Permission Denial requires null

Posted by Matroska on Stack Overflow See other posts from Stack Overflow or by Matroska
Published on 2010-05-20T19:06:36Z Indexed on 2010/05/20 19:10 UTC
Read the original article Hit count: 619

Filed under:
|
|

Hi all,

I would like to launch the market from a preference screen but when I try to do this I obain a java.lang.SecurityException: Permission Denial: starting Intent { cmp=com.action.test/.ui.activities.Test } from ProcessRecord{44db1300 3697:com.pippo.pluto/10067} (pid=3697, uid=10067) requires null. This is my code:

startActivity(new Intent(Intent.ACTION_VIEW,Uri.parse("market://search?q=pname:com.action.test")));

what am I doing wrong?

Thanks in advance Tobia

© Stack Overflow or respective owner

Related posts about android

Related posts about activity