@Override protected String doInBackground(String... params) { if (NetworkService.hasInternetConnection(getApplicationContext())) { String userResponse = WebServiceWrapper.CheckUser(editUserEmailAddress.getText().toString().trim()); if (userResponse != null) { msg = JSONHelper.getMessageResult("CheckUserResult", "Message", userResponse); if (JSONHelper.getJsonObjectResult("CheckUserResult", "IsSuccessfull", userResponse)) { return "FAILED"; // user already exist } else { return "SUCCESS"; } } else { return ApplicationSettings.translationSettings.GetTranslation( "and_msg_noInternetAccess", "No internet access"); } } else { return ApplicationSettings.translationSettings.GetTranslation( "and_msg_noInternetAccess", "No internet access"); } }