Example #1
0
  @Override
  public void onDestroy() {
    super.onDestroy();

    if (gameEventHandler != null) gameEventHandler.stop();

    // Stop the socket
    Log.d("Socket", "quitting socket");
    connection.pause();
  }