@Override
  public void processRemoteResponse() {

    if (response != null) {
      if (response.getStatusCode() == 0) {
        startMain();
      } else {
        ToastUtil.errorToast(ctx, response.getMessage());
      }
    }
  }
 @Override
 public void onCoursePicked(TrainingClassCourseDTO course) {
   Log.w(LOG, "####################### Course selected. " + course.getCourse().getCourseName());
   if (course.getNumberOfActivities() == 0) {
     ToastUtil.toast(ctx, ctx.getResources().getString(R.string.course_noact));
     return;
   }
   Intent i = new Intent(ctx, ActivityListActivity.class);
   i.putExtra("course", course);
   i.putExtra("trainee", trainee);
   i.putExtra("type", ActivityListActivity.INSTRUCTOR);
   startActivityForResult(i, START_ACTIVITY_LIST);
 }
 @Override
 public void processSignIn() {
   if (editPassword.getText().toString().isEmpty()) {
     ToastUtil.errorToast(
         getApplicationContext(),
         getApplicationContext().getResources().getString(R.string.enter_password));
     return;
   }
   password = editPassword.getText().toString();
   type = RequestDTO.LOGIN_AUTHOR;
   try {
     getRemoteData(type, Statics.SERVLET_AUTHOR);
   } catch (UnsupportedEncodingException e) {
     e.printStackTrace();
   }
 }