[Solved] how to get value in edittext in an actvity from second activity?


Try this.

Use below code for pass value from first activity to second activity.

Intent mInSecond = new Intent(FirstActivity.this, SecondActivity.class);
mInSecond.putExtra("Value", mEdttxtpassword.getText().toString());
startActivity(mInSecond);

Use below code for get value

Bundle bdl = getIntent().getExtras();
String mValue = bdl.getString("Value");

solved how to get value in edittext in an actvity from second activity?