Advertisement
Guest User

Untitled

a guest
Oct 21st, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. public void run() {
  2. mmBluetoothAdapter.cancelDiscovery();
  3. try
  4. {
  5. Log.d(TAG, "start connect");
  6. mmSocket.connect();
  7. Log.d(TAG, "end connect");
  8. }
  9. catch (Exception exception) {
  10. Log.d(TAG, "connectException: " + exception.getMessage());
  11. try
  12. {
  13. mmSocket.close();
  14. }
  15. catch (IOException closeException) { }
  16. return;
  17. }
  18.  
  19. //mConnectedThread = new ConnectedThread(mmSocket);
  20. //mConnectedThread.start();}
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement