Android - how come sending an Intent to my app stoare crashes?
<p>I have this code:</p>

<pre><code>Button give_review = (Button)findViewById(R.id.give_review);   
give_review.setOnClickListener(new Button.OnClickListener() 
{  
    public void onClick(View v) 
    {   
        Intent intent = new Intent(Intent.ACTION_VIEW);
        intent.setData(Uri.parse("market://details?id=com.problemio"));
        startActivity(intent);                
    }
});  
</code></pre>

<p>and for some reason when the button is clicked, the system crashes.</p>

<p>My application url is this: <code>store/apps/details?id=com.problemio</code></p>

<p>and my Class is located in this directory:</p>

<pre><code>src/com/problemio/content/MyClassNameActivity
</code></pre>

<p>What might be causing the crash? I use this code in other parts of my app and it works, albeit the other classes are one directory lower inside the src/com/problemio directory.</p>

<p>Here is the stack trace:</p>

<pre><code>android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=market://details?id=com.problemio }
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1512)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1384)
at android.app.Activity.startActivityForResult(Activity.java:3190)
at android.app.Activity.startActivity(Activity.java:3297)
at com.problemio.content.BusinessIdeasActivity$5.onClick(BusinessIdeasActivity.java:105)
at android.view.View.performClick(View.java:3511)
at android.view.View$PerformClick.run(View.java:14105)
at android.os.Handler.handleCallback(Handler.java:605)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
</code></pre>

<p>Thanks for the suggestions,
Alex</p>
