How can we extract a line from a multiLine EditText ?
EditText
I tried this way, but I know that is not a good practice :
String street1 = \"\";
Try this,
String text=editText1.getText().toString().replace("\n", " ").trim();