@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_welcome); if (getIntent().getBooleanExtra("EXIT", false)) { finish(); } }