String email = email.getText().toString();
Please help getting error The method getText() is undefined for the type String
It seems that you have shadowed an attribute email
by calling a variable with the same name.
Hence email
does not reference what you meant anymore (a textfield I suppose) but a String.
You should change the name of your variable.
Change - String email = email.getText().toString()
to
String emailStr = email.getText().toString()
Assume the id of your EditText is email. To get the Text of the EditText you can use
String email = ((EditText)findViewById(R.id.email)).getText().toString();