0

i am using a leaderboard via gps google play service. This is the only think i am using from the gps library at the moment.
For users with a Android Version 2.2 aka Froyo this does not work.
Is there a way to post the highscore to the leaderboard on a device which runs Android 2.2?
For other devices, it works fine.

This is my code:

public void showHighscore() {
    Games.Leaderboards.submitScore(mHelper_.getApiClient(),
            getString(R.string.leaderboard_highscore), this.getIntent()
                    .getExtras().getInt("highscore"));

    int REQUEST_LEADERBOARD = 1;// beliebiger int
    startActivityForResult(Games.Leaderboards.getLeaderboardIntent(
            mHelper_.getApiClient(),
            getString(R.string.leaderboard_highscore)), REQUEST_LEADERBOARD);
}
Stéphane
  • 6,920
  • 2
  • 43
  • 53
FokTheRock
  • 111
  • 1
  • 6

1 Answers1

1

As of Google Play Services 4.0, the minimum API version for Google Play Services is Android 2.3 (Gingerbread).

You can instead use the 'Google Play services for Froyo' from the SDK Manager and reference Google Play Services version 3.2.65 (the last available for Froyo), but obviously will not have access to any of the new APIs.

Community
  • 1
  • 1
ianhanniballake
  • 191,609
  • 30
  • 470
  • 443
  • Does the Google Play services for Froyo give you acccess to the google plus leaderboard system? It is very hard to find relevant information and Documentation. – FokTheRock Apr 26 '14 at 14:48
  • Support for Froyo has been deprecated for over 6 months now so finding documentation or examples would be very difficult. Google Play Games and leaderboards **did** come out prior to Google Play Services 4.0, so they are available for Froyo users. Do note however, that the current GoogleApiClient based model (which provides a more reliable connection experience and a new API for accessing multiple Google services) has only recently been introduced and would not be available for Froyo. – ianhanniballake Apr 26 '14 at 15:10