Creating a Notification to launch a non MAIN activity on its own.. possible?
<p>I'm not sure if this question has been asked before, but I can't seem to find any references to it. I hope I can get some help here.</p>

<p>Currently I have an application with two activities, <code>Activity Main</code> and <code>Activity Dialog</code>.</p>

<p><code>Activity Main</code> is my MAIN activity that starts when the app is launched from the home screen.</p>

<p><code>Activity Dialog</code> has <code>&lt;activity style="@android:style/Theme.Dialog"&gt;</code> declared in the manifest so that it looks like a dialog.</p>

<p>And then I create a notification as such (not full code):</p>

<pre><code>    Intent notificationIntent = new Intent(ActivityMain.this, ActivityDialog.class);
    PendingIntent contentIntent = PendingIntent.getActivity(ActivityMain.this, 0, notificationIntent, 0);
    notification.setLatestEventInfo(context, contentTitle, contentText, contentIntent);
    mNotificationManager.notify(ID, notification);
</code></pre>

<p>What I am trying to achieve is to show the user <code>Activity Dialog</code> as a dialog (containing some relevant information) when the user selects the notification. The user can then dismiss the dialog and continue whatever they were doing. </p>

<p>Unfortunately, this way does not seem to work as clicking on the notification will result in <code>Activity Main</code> launching first, filling up the screen, and then <code>Activity Dialog</code> displaying the information as a dialog.</p>

<p>Is there any way I can create a notification which will launch <code>Activity Dialog</code> on its own? Even though <code>Activity Dialog</code> is not the MAIN activity?</p>
