title: Avoid Splash Screen to launch when user open app from recent screen
body: <p>I wanna know how I can avoid splash screen to launch when my app is in recents.</p>
  <p>I want the app to open the activity where user was in it before  when he/she  clicks back button of device and opens
  app from recent screen.</p>
  <p>This is a splash screen activity :</p>
  <pre><code>public class MainActivity extends AppCompatActivity {
  //variables
      private static int SPLASH_SCREEN = 1000;
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);
  
  
  
          new Handler().postDelayed(new Runnable() {
              @Override
              public void run() {
                  Intent intent = new Intent(MainActivity.this , Main_Page.class);
                  startActivity(intent);
                  finish();
              }
          },SPLASH_SCREEN);
  
  
      }
  
  
  </code></pre>