Issue with the response.body().string()
Searched all the post in the stackoverflow.
Cannot solve this issue.
private void signIn() {
Call<ResponseBody> call = ApiClient.getUserService().createUser(client_fullname, email, nationality, phone, dob, password, cpassword);
call.enqueue(new Callback<ResponseBody>() {
@Override
public void onResponse(Call<ResponseBody> call, Response<ResponseBody> response) {
System.out.println("The value of response is" + response.isSuccessful());
ResponseBody result = response.body();
try {
myapiResult = result.string();
} catch (IOException e) {
e.printStackTrace();
}
if (response.isSuccessful()) {
clearEditText();
showAlertDialogBox("Sucessfully Submitted", "Thanks for believing us.", 1);
}
else if (myapiResult.equals(email)) {
showAlertDialogBox("Error", "Already Registered.Please Login", 1);
}