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
You have to use Intent to pass data to the next activity.
Intent intent = new Intent(CurrentActivity.this,NextActivity.class); intent.putExtra("sampleString", "youstringdata");
In NextActivity:
String sampleData = getIntent().getExtras().getLong("sampleString");