Problem while displaying activity from BroadcastReceiver
<p>Hi I have a Broadcast receiver with following code.</p>

<pre><code>   1. Intent i = new Intent(context, A.class);    
   2. i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);    
   3. context.startActivity(i);  
</code></pre>

<p>This works fine and my activity does start, but it starts on top of my main activity i.e. B. What I want is that from my broadcast receiver I should be able start an Activity A, such that it does not start on top of B. Why B is always starting in background. What I am doing wrong.</p>

<p>Also, to mention by activity A has Theme.Dialog.</p>

<p>Please let me know your thoughts.</p>
