/** Indicate that the connection attempt failed and notify the UI Activity. */ private void connectionFailed(int arg1, int arg2) { setState(STATE_LISTEN); mHandler.obtainMessage(BTMessageHandler.MESSAGE_CONNECTION_FAIL, arg1, arg2).sendToTarget(); }