This line is wrong:
URL linkurl = new URL("http://iipacademy.inaskpoll?email="+emailto);
emailto
seems to be the EditText
object, not the text that you have written to it. Use the getText()
method to get the actual text:
String email = emailto.getText().toString();
URL linkurl = new URL("http://iipacademy.inaskpoll?email="+email);