Answers for "how to pass data between activities in android"

3

send variable intent

String sessionId = getIntent().getStringExtra("EXTRA_SESSION_ID");
Posted by: Guest on May-27-2020
2

send variable intent

Intent intent = new Intent(getBaseContext(), SignoutActivity.class);
intent.putExtra("EXTRA_SESSION_ID", sessionId);
startActivity(intent);
Posted by: Guest on May-27-2020
0

how to pass string between activities android

Bundle extras = getIntent().getExtras();
if(extras !=null) {
    String value = extras.getString("KEY");
}
Posted by: Guest on February-23-2020
0

how to pass string between activities android

Intent i = new Intent(this, FindAndroidActivity.class);
i.putExtra("KEY",YourData);
Posted by: Guest on February-23-2020

Code answers related to "how to pass data between activities in android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language