android studio send data to another activity code example
Example 1: send variable intent
String sessionId = getIntent().getStringExtra("EXTRA_SESSION_ID");
Example 2: send variable intent
Intent intent = new Intent(getBaseContext(), SignoutActivity.class);
intent.putExtra("EXTRA_SESSION_ID", sessionId);
startActivity(intent);