public static void submitScore(final String leaderboardID, final long score) {
    if (SonarFrameworkSettings.USE_GOOGLE_PLAY_GAME_SERVICES) {
      ((SonarFrameworkActivity) app)
          .runOnUiThread(
              new Runnable() {

                @Override
                public void run() {
                  if (isSignedIn()) {
                    Log.d("Google Play Services", "Submit score " + score + " to " + leaderboardID);
                    googlePlayServices.submitScore(leaderboardID, score);

                  } else {
                    String message =
                        app.getResources()
                            .getString(
                                app.getResources()
                                    .getIdentifier(
                                        "fail_submit_score_leaderboard",
                                        "string",
                                        app.getPackageName()));
                    message = message.replace("{score}", score + "");
                    message = message.replace("{leaderboardID}", leaderboardID);
                    displayAlert(message);
                  }
                }
              });
    } else if (SonarFrameworkSettings.USE_AMAZON_GAMECIRCLES) {
      amazongameCircle.submitScore(leaderboardID, score);
    }
  }
 public static void submitScoreAmazon(final String leaderboardID, final int score) {
   if (SonarFrameworkSettings.USE_AMAZON_GAMECIRCLES) {
     amazongameCircle.submitScore(leaderboardID, score);
   }
 }