I\'ve programmed a game for android, everything works fine, but now I want my app to have Google play Games services (leaderboards and achievements). I used
Check the part where you are getting ApiClient i.e. getApiClient(). Write the code below to see if GoogleApiClient is Connected or not.
GoogleApiClient mGoogleApiClient;
if(mGoogleApiClient.isConnected()){
// good
}else{
//connect it
mGoogleApiClient.connect(GoogleApiClient.SIGN_IN_MODE_OPTIONAL);
}