title: How can I start MAIN activity with the help of <intent-filter>?
body: <p>When I declare my main activity in this maner:</p>
  
  <pre><code>&lt;activity android:name=".MyActivity"
            android:configChanges="orientation|keyboardHidden"
            android:windowSoftInputMode="stateHidden"
            android:screenOrientation="portrait"&gt;
      &lt;intent-filter&gt;
            &lt;action android:name="android.intent.action.MAIN"/&gt;
            &lt;action android:name="com.package.name.MyActivity"/&gt;
            &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
      &lt;/intent-filter&gt;
  &lt;/activity&gt;
  </code></pre>
  
  <p>then I get an error <code>No Activity found to handle Intent { act=com.package.name.MyActivity flg=0x24000000 }</code> when I am using this code:</p>
  
  <pre><code>Intent intent = new Intent("com.package.name.MyActivity");
  intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP);
  context.startActivity(intent);
  </code></pre>
  
  <p>If do not use <code>Intent i = new Intent(this, MyActivity.class);</code> how can I do this with the help of <code>action</code> for <code>&lt;intent-filter&gt;</code></p>
  
  <p><strong>Didn't help:</strong></p>
  
  <pre><code> &lt;intent-filter&gt;
        &lt;action android:name="android.intent.action.MAIN"/&gt;
        &lt;action android:name="com.package.name.VIEW"/&gt;
        &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
   &lt;/intent-filter&gt;
  </code></pre>
  
  <p>code:</p>
  
  <pre><code>Intent intent = new Intent("com.package.name.VIEW");
  intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP);
  context.startActivity(intent);
  </code></pre>