I am developing an android application in which i have taken two buttons and one edit text box. i want to pass the data of edit text box in from of string to the next activi
Inside your Button's onClick Listener try the following,
String str=editText.getEditableText().toString();
Now use your intent,
Intent intent=new Intent(this,nextActivity.this); intent.putExtra("editText_value",str); startActivity(intent);