1

hey everyone, i am new in android

i have five activity's and one result activity i want to send some data/parameter to result activity

first_activity,
sec_activity,
third_activity,
four_activity,
five_activityeach

each have some data like name and age

onclicking, i want the data to be saved/send to result_activity. thnks

jason
  • 23
  • 2

4 Answers4

1

Why are they all separate activities in the first place? Should they be a part of a single-activity wizard instead? Here is a recent blog post of mine that goes into somewhat more details.

CommonsWare
  • 954,112
  • 185
  • 2,315
  • 2,367
0

You do it throught Intents and use the putExtras methods

Marcos Vasconcelos
  • 18,038
  • 29
  • 106
  • 167
0

Expanding on what Marcos said, here'e a good place to start with Intents.

http://developer.android.com/guide/topics/intents/intents-filters.html

R Hughes
  • 640
  • 9
  • 22
0

Put all your data from each activity to SharedPreferences, then acces it from your final activity. Here are some examples: http://developer.android.com/guide/topics/data/data-storage.html#pref

George
  • 8,287
  • 11
  • 63
  • 106