intent between activities android code example
Example 1: android how to switch between activities
Intent intent = new Intent(getApplicationContext(), ActivityToBeOpened.class);
startActivity(intent);
Example 2: send variable intent
String sessionId = getIntent().getStringExtra("EXTRA_SESSION_ID");