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..
public EditText var_name; var_name=(EditText)findViewById(R.id.input_id); publc void function_name(){ Intent i=new Intent(this, class_name.class); String s=this.edittext_var_name.getString().toString(); i.putExtra("var_name","s"); startActivity(i); }`