send variable intent

Java
String sessionId = getIntent().getStringExtra("EXTRA_SESSION_ID");Intent intent = new Intent(getBaseContext(), SignoutActivity.class);
intent.putExtra("EXTRA_SESSION_ID", sessionId);
startActivity(intent);
Source

Also in Java: