title: Android How to connect OK Google voice queries to my app
body: <p>First of fall sorry for my weak english i want to open my app by "Ok google" with search query. But not Open my app With "Ok Google". I get stuck in it. So suggest me where i wrong</p>
  
  <blockquote>
    <p>But Open My App When I try to say open in "Ok Google" with "Open App
    Name" that time open my app</p>
  </blockquote>
  
  <p>So please help me thanks for advance </p>
  
  <p>Following my code in AndroidManifest.xml</p>
  
  <pre><code> &lt;intent-filter&gt;
   &lt;action android:name="com.google.android.gms.actions.SEARCH_ACTION" /&gt;
   &lt;category android:name="android.intent.category.DEFAULT" /&gt;
   &lt;/intent-filter&gt;  
  </code></pre>
  
  <p>And In Java File</p>
  
  <pre><code> String query = "";
   if (getIntent().getAction() != null &amp;&amp;
            getIntent().getAction().equals("com.google.android.gms.actions.SEARCH_ACTION) {
   query = getIntent().getStringExtra(SearchManager.QUERY);
  
  }
  </code></pre>