Skip to content Skip to sidebar Skip to footer

Displaying Google Play Game Services Player Image Using Imageview

I'm working with Google play game services and I'm using this code to get player detail. if (gamesClient != null) { Games.Leaderboards.loadCurrentPlayerLeaderboardScore(gam

Solution 1:

I try it using ImageManager like this one:

    Uri icon = Games.Players.getCurrentPlayer(googleApiClient).getIconImageUri();

    ImageManager manager = ImageManager.create(this);
    manager.loadImage(photo, icon);

I haven't tried it yet on LeaderboardScore, but I think it will be same. since the Uri format is same content://com.google.android.gms.games.background/blablabla


Post a Comment for "Displaying Google Play Game Services Player Image Using Imageview"