protected void onPostExecute(GenericResponseObject response) {
   if (response.isSuccess()) {
     Utils.makeToast(context, Constants.AUTHORIZE_SUCCESS, Toast.LENGTH_LONG);
     launchHome();
   } else
     Utils.makeToast(context, Utils.mergeArrayList(response.getErrors()), Toast.LENGTH_LONG);
 }
 protected void onPostExecute(HashMap<String, String> results) {
   if (results.get("success").equals("true")) {
     Utils.makeToast(context, Constants.SECRET_QUESTION_SUCCESS, Toast.LENGTH_LONG);
     Intent intent = new Intent(ForgotPasswordActivity.this, LoginActivity.class);
     startActivity(intent);
   } else Utils.makeToast(context, results.get("errors"), Toast.LENGTH_LONG);
 }
    @Override
    protected GenericResponseObject doInBackground(Void... params) {

      AuthorizeRequest rest = new AuthorizeRequest(context);
      GenericResponseObject response = new GenericResponseObject();
      try {
        response = rest.authorizeDevice(Utils.getDeviceID(context));
      } catch (Exception e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
      return response;
    }