Code example for AppStateClient

Methods: connect

0
      { 
        Log.i("trace", "Connecting to AppStateClient"); 
 
        GameActivity.getInstance().runOnUiThread(new Runnable(){ 
          public void run() { 
            appStateClient.connect();
          }}); 
      } 
      else if(appStateClient.isConnecting()) 
      { 
        Log.i("trace", "AppStateClient already connecting"); 
      } 
      else if(appStateClient.isConnected()) 
      { 
        Log.i("trace", "AppStateClient already connected"); 
        connectionEstablished("APP_STATE_CLIENT"); 
      } 
    } 
    catch(Exception e)
    { 
      handleException(e, "signIn");