Display Activity A Data In Activity B Page
I have 2 textbox,1 spinnerview and 1 button in this Activity A. After the user click the button, it goes to next Activity B which i want this activity to display what the user have
Solution 1:
Intent i = new Intent(this, ActivityB.class);
i.putExtra("data", editText.getText().toString());
startActivity(i);
Then in ActivityB in onCreate()
:
String data = getIntent().getStringExtra("data");
showConfirmation(data);
Solution 2:
You need to pass data into your intent which is starting the Activity B.
Check this for more info.
http://thedevelopersinfo.wordpress.com/2009/10/15/passing-data-between-activities-in-android/
Post a Comment for "Display Activity A Data In Activity B Page"