title: How set intent-filter use Java code?
body: <p>I write a activity , I want to use click search button jump this activity, I write some code in Manifest.</p>
  
  <pre><code>&lt;activity android:theme="@style/launcher" android:name=".Launcher"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.SEARCH_LONG_PRESS"/&gt;
              &lt;action android:name="android.intent.action.ASSIST"/&gt;
              &lt;category android:name="android.intent.category.DEFAULT"/&gt;
          &lt;/intent-filter&gt;
  </code></pre>
  
  <p></p>
  
  <p>It is work. But now I want to people control in in other activity, people can set this activity jump or not jump when long press search button.</p>