+ Reply to Thread
Results 1 to 2 of 2

Thread: How to open a Bluetooth Socket?

  1. #1
    Junior Member
    Join Date
    Aug 2012
    Posts
    17

    How to open a Bluetooth Socket?

    I want to open the bluetooth socket programmatically.

  2. #2
    Junior Member
    Join Date
    Aug 2012
    Posts
    15
    The following code snippet opens the bluetooth socket.

    Code:
    BluetoothServerSocket myServerSocket = myBluetoothAdapter.listenUsingRfcommWithServiceRecord(name, uuid);
    myServerSocket.accept(); 
    myServerSocket.close();

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts