Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void run() {
- mmBluetoothAdapter.cancelDiscovery();
- try
- {
- Log.d(TAG, "start connect");
- mmSocket.connect();
- Log.d(TAG, "end connect");
- }
- catch (Exception exception) {
- Log.d(TAG, "connectException: " + exception.getMessage());
- try
- {
- mmSocket.close();
- }
- catch (IOException closeException) { }
- return;
- }
- //mConnectedThread = new ConnectedThread(mmSocket);
- //mConnectedThread.start();}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement