Possible Duplicate:
How do I pass data between activities in Android?
I have two activities. One with text and image views and the other with a button.
I would like to click the button on the activity, go to the second activity and set the text and images of that second activity.
Can anyone give me any help?
1. Use
Intent.2. For Keeping it simple you can use
PutExtra()to send the data to another activity with theintent, and can get the data on the another activity by using
getExtras()3. You can also use
startActivityforResult()for the same purpose./////////////Edited//////////
Eg:
In Activity Class_One
In Activity Class_Two