I'm getting the following warning in my LogCat output. I have implemented Google Play Games Leaderboards which, after some research, it appears this warning is related to....

enter image description here

I would point out that my app works fine, it's already published and scores have been submitted to the leaderboard, however, I would like to get rid of this warning if I can but I'm honestly unsure why I have it in the first place.

I've read quite a few questions relating to this warning, however in those questions, there were also actual problems with the Play Games Services not working.

My Activity class is extending BaseGameActivity. Like so:

public class MainActivity extends BaseGameActivity implements
ConnectionCallbacks, OnConnectionFailedListener, AdListener{

    //And I will then use getGameHelper() to carry out the various calls
    //For example




The official tutorial, now seems to suggest extending Activity and not BaseGameActivity and creating a GoogleApiClient object (unless I'm looking in the wrong place). As I don't have a GoogleApiClient object, I can't access setViewForPopups.

Is this something that I need to worry about and if so, how do I get rid of it? It's not causing any issues, however, I'm worried by the 'may not work properly in future versions of the API' part.

Extremely confused, so any help appreicated.

  • \$\begingroup\$ You can use getApiClient().setViewForPopups() in your activity which extends BaseGameActivity. \$\endgroup\$ – free3dom Jan 12 '15 at 21:29
  • \$\begingroup\$ Hi @free3dom, if I do getApiClient(). and let Eclipse show me what is available, setViewForPopups() isn't in the resulting list. \$\endgroup\$ – BungleBonce Jan 12 '15 at 22:46
  • \$\begingroup\$ Oh right, it was changed a while back. It is now done through the Games object (see here). \$\endgroup\$ – free3dom Jan 12 '15 at 23:20
  • \$\begingroup\$ Yeah, I think they changed it in December, that's when the documentation seems to have been updated. developers.google.com/games/services/android/init \$\endgroup\$ – BungleBonce Jan 12 '15 at 23:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.