When my app is in Background It wont open at first time
<p>In my application there is a splash screen in which I am downloading data ,then I am calling My next Activity "A"  by using </p>

<pre><code>Intent intent;
intent = new Intent(SplashscreenActivity.this, A.class);
intent.putExtra("position",0);
intent.putExtra("flag",true);
startActivity(intent);
finish();                
</code></pre>

<p>It opens app well then I pressed the home screen button which get app to the background.</p>

<p>When I opened App again  it would not open the app it just flashes and gives me log for Activity "A" and also when i check Logs it doesnot shows Splashsceen logs but it shows logs in Activity A and also shows intent data which I passes i.e. position and flag. 
I do not able to understand what is the problem Is it because of finish() I am calling in splashScreen.
How can I solve this?
Thanks in advance </p>
