I have successfully created EditTexts depending on the user input in Android, and also I have assigned them unique ID\'s using setId() method.
Now wha
this is because EditText.gettext() return Editable , so toString will not work . try String.valueOf(edittext.gettext) .
if u sure that u r getting d right EditText but prob. is how 2 pass its test to string den code is
EditText t = new EditText(this);
t.setText("test");// obviously in ur case it will be intered by user
String s = String.valueOf(t.getText());
System.out.println(s);
else use setTeg(Edittext) n get editText by getTag on button click .