My project's requirement is : edittext value is first entered by user and that same value will be visible in another activity's editext , which should be read only..
You can pass it using Intent's putExtra() method. try this way,
In First Activity,
Intent intent = new Intent ( FirstAcvity.this, SecondActivity.class ); 
intent.putExtra ( "TextBox", editText.getText().toString() );
startActivity(intent); 
Now, in second activity, use following code,
Intent i = getIntent(); 
String text = i.getStringExtra ( "TextBox","" ); 
// Now set this value to EditText 
secondEditText.setText ( text ); 
secondEditText.setEnable(false);
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With