How do you send data from one activity to another using intents.
(Note this is a two-part question, the sending and the receiving).
I\'m creating a form, a
Sending (Activity 1):
Intent intent = new Intent(MyCurentActivity.this, SecondActivity.class); intent.putExtra("key", "enter value here"); startActivity(intent);
Receiving (Activity 2):
String text = getIntent().getStringExtra("key");