Possible Duplicate:
How to pass object from one activity to another in Android
I have two activities Activity 1
and Activity 2
. For these two activities, I have two XML layout 1.xml and 2.xml. In 1.xml I have a Button
and in 2.xml I have TextView
. So what I want is on click of Button
which is on the first activity I want to open the 2nd activity and also want to display the text shown in Button
on the Textview
present in Activity2. I mean to say that suppose the text in the Button
is "ADD" then this text will be displayed in TextView
.
Note: Button
is on Activity1 and TextView
is on Activity2