@Override public void onAnswerChecked(boolean answer,boolean switchToNext){
  User currentUser=mUserManager.getCurrentUser();
  mCompletionLogic.updateAfterAnswer(mAllDueChallenges.get(mChallengeNo),currentUser.getId(),answer ? CompletionLogic.ANSWER_RIGHT : CompletionLogic.ANSWER_WRONG);
  Statistics statistics=new Statistics(null,answer,new Date(),currentUser.getId(),mAllDueChallenges.get(mChallengeNo));
  mStatisticsDataSource.create(statistics);
  if (switchToNext) {
    loadNextScreen();
  }
}

@ Override public void onAnswerChecked ( boolean answer , boolean switchToNext ) { User currentUser = mUserManager . getCurrentUser ( ) ; mCompletionLogic . updateAfterAnswer ( mAllDueChallenges . get ( mChallengeNo ) , currentUser . getId ( ) , answer ? CompletionLogic . ANSWER_RIGHT : CompletionLogic . ANSWER_WRONG ) ; Statistics statistics = new Statistics ( null , answer , new Date ( ) , currentUser . getId ( ) , mAllDueChallenges . get ( mChallengeNo ) ) ; mStatisticsDataSource . create ( statistics ) ; if ( switchToNext ) { loadNextScreen ( ) ; } }
after the answer was checked save the answer depending on whether the answer is right or wrong
