Android : Pause Activity
public class WelcomeActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super .onCreate(savedInstanceState); requestWindowFeature(Window. FEATURE_NO_TITLE ); this .getWindow().setFlags(WindowManager.LayoutParams. FLAG_FULLSCREEN ,WindowManager.LayoutParams. FLAG_FULLSCREEN ); setContentView(R.layout. activity_welcome ); Thread thread = new Thread(){ public void run(){ try { sleep ( 3000 ); } catch (InterruptedException e) { e.printStackTrace(); } finally { Intent intent = new Intent(WelcomeActivity. this , MainActivity. class ); startActivity(intent); } } }; thread.start(); } @Override protected void onPause() { super .onPause(); finish(); } }