Use intent.putExtra(key, value) in your 1st activity and access them using getIntent().getExtras() in the 2nd
On Mar 3, 12:21 am, Kofa <elk...@gmail.com> wrote: > I'm trying to read a variable from one activity to another... i > explain better: I'm making a video game, so the user will have to > chose like a team, color, and other options from one activity and then > should read this variables from another activity. > so the question is... how can i declare integer, string, etc values > from one activity and then read it from another activity? thx a lot -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en