Open application in last state it was in
<p>when the user clicks on the icon in the app drawer to start my application, my app opens in the state it was last in.</p>

<p>I have a broadcast receiver, and when I receive a certain intent I want to have the same effect. </p>

<p>At the moment I use </p>

<pre><code>Intent launchIntent = mContext.getPackageManager().getLaunchIntentForPackage("xx.xx.xx"); //My package name
context.startActivity(launchIntent);
</code></pre>

<p>But this always opens the mainactivity of my application.</p>

<p>How can I fix this? thx</p>
