How Can We Pass Multiple Values by Intent in Android?
Contents

How can Intent pass multiple values in Android?

beachguide. _ID”; Intent i = new Intent(this, CoastList. class); i. putExtra(ID_EXTRA, “1”, “111”); startActivity(i);

How can I pass multiple EditText values to another activity in Android?

You need put them in Extras (putExtras) and then pass from the current activity to the other one. You need capture your EditText value as String and then putExtra with Key – one each for your need and then retrieve them in the second activity.

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest