254255256257258259260261262263264265266267
/** * Send a ping to the XBMC host and wait for a 'pong'. */ public void ping() { final JSONRPCPing ping = new JSONRPCPing(client, httpUri); ping.execute(new Runnable() { @Override public void run() { connected = ping.isPong(); } }); }