2 Activities how do I launch just one
<p>Rookie here.</p>

<p>Building an Android application where I have an activiy to update the notification bar AND display the apps main screen.  The second Activity just updates the notification icon.</p>

<p>When I attempt to launch just the notification Activity both startup.</p>

<p>I have it's the fact that both my Activities have DEFAULT category:</p>

<pre><code>       &lt;activity android:name=".MyappMain"
       android:theme="@android:style/Theme.NoTitleBar"&gt;
        &lt;intent-filter&gt;
            &lt;action android:name="com.ng.MyappMain" /&gt;
            &lt;category android:name="android.intent.category.DEFAULT" /&gt;
        &lt;/intent-filter&gt;
    &lt;/activity&gt;    
           &lt;activity android:name=".MyappNotification"
       android:theme="@android:style/Theme.NoDisplay"&gt;
        &lt;intent-filter&gt;
            &lt;action android:name="com.ng.MyappNotification" /&gt;
            &lt;category android:name="android.intent.category.DEFAULT" /&gt;
        &lt;/intent-filter&gt;
    &lt;/activity&gt;
</code></pre>

<p>Here is the code to launch my notification activity:</p>

<pre><code>            Intent intentx = new Intent("com.ng.MyappNotification");
        lamaIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
       context.startActivity(intentx);
</code></pre>

<p>Can someone show me an example of a Broadcastreceiver launching a activity</p>
