Code example for AppStateClient

Methods: isConnectedupdateState

0
 
  public static void updateState(int stateKey, String data)
  { 
    try 
    { 
      if(appStateClient != null && appStateClient.isConnected())
      { 
        appStateClient.updateState(stateKey, data.getBytes());
 
        Log.i("trace", "Updating state: " + stateKey);
      } 
    } 
    catch(Exception e)
    { 
      handleException(e, "updateState");
    } 
  } 
 
  public static void resolveState(int stateKey, String version, String data)
  {