How to pass values from one Activity to another

Asked

Viewed 30 times

0

I came here to know how I do to pass data from one Activity to another, I’ve tried this:

Intent i = new Intent(this, other.class)
i.putExtra("NAME", name);

But when I try to take the other Acticity and compile the error program and it stops working. What I do now????

  • Which error will return?

  • The application simply stops, without dqr

  • Put here what appears in the logcat so we know the error. Example here: http://stackoverflow.com/questions/4233873/how-to-get-extra-data-intent-in-android

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.