Code example for GamesClient

Methods: connect

0
        // not sure should we run gamesClient.connect in thread 
        // but unlock and increment achievement sould 
        GLSurfaceView view = GameActivity.getMainView(); 
        GameActivity.getInstance().runOnUiThread(new Runnable(){ 
          public void run() { 
            gamesClient.connect(); 
          }}); 
      } 
      else if(gamesClient.isConnecting()) 
      { 
        Log.i("trace", "GamesClient already connecting"); 
      } 
      else if(gamesClient.isConnected()) 
      { 
        Log.i("trace", "GamesClient already connected"); 
        connectionEstablished("GAMES_CLIENT"); 
      } 
 
      if(!appStateClient.isConnected() && !appStateClient.isConnected()) 
      { 
        Log.i("trace", "Connecting to AppStateClient");