Android Start new activity with data

Intent intent = new Intent(getBaseContext(), SignoutActivity.class); intent.putExtra("EXTRA_SESSION_ID", sessionId); startActivity(intent); Access that intent on next activity String sessionId= getIntent().getStringExtra("EXTRA_SESSION_ID"); to check if data is null if( getIntent().getExtras() != null) { //do here } 394 You have a few options: 1) Use...
Read more »