ANDROID Integrate my app with Waze
<p>I want to integrate Waze into my android application. I follow the steps from the link below.</p>

<p><a href="https://www.waze.com/about/dev#android_api" rel="nofollow noreferrer">https://www.waze.com/about/dev#android_api</a></p>

<p>I search through the questions and found this same one but it is for ios</p>

<p><a href="https://stackoverflow.com/questions/10688290/xcode-and-waze-integration">xcode and waze integration</a></p>

<p>Below is the code which i use.</p>

<pre><code>try
            {
                String url = "waze://?q=Hawaii";
                Intent intent = new Intent( Intent.ACTION_VIEW, Uri.parse(url) );
                startActivity( intent );
            }
            catch ( ActivityNotFoundException ex  )
            {
                Intent intent =
                        new Intent( Intent.ACTION_VIEW, Uri.parse( "market://details?id=com.waze" ) );
                startActivity(intent);
            }
</code></pre>

<p>Why I got the following error when I run it?</p>

<pre><code>Process: com.domain.appname, PID: 5711
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=market://details?id=com.waze }
</code></pre>