public void processAchievements() { int score = game.getScore(); if (score > 0) { Games.Achievements.unlock(mGoogleApiClient, Constants.achievement_boom); // Score level achievements Games.Achievements.increment( mGoogleApiClient, Constants.achievement_just_getting_started, score); Games.Achievements.increment( mGoogleApiClient, Constants.achievement_established_starter, score); Games.Achievements.increment(mGoogleApiClient, Constants.achievement_seasoned_pro, score); Games.Achievements.increment(mGoogleApiClient, Constants.achievement_grizzly_veteran, score); Games.Achievements.increment(mGoogleApiClient, Constants.achievement_gridiron_legend, score); Games.Achievements.increment( mGoogleApiClient, Constants.achievement_never_gonna_give_your_up, score); } if (controller.hadWrongAnswer()) { Games.Achievements.unlock(mGoogleApiClient, Constants.achievement_oops); } if (controller.getBestStreak() >= 3) { Games.Achievements.unlock(mGoogleApiClient, Constants.achievement_tictactoe); } if (controller.getLongestWrongStreak() >= 3) { Games.Achievements.unlock(mGoogleApiClient, Constants.achievement_tictacouch); } if (controller.getStartStreak() >= 10) { Games.Achievements.unlock(mGoogleApiClient, Constants.achievement_jumping_the_snap_count); } }