OSDN Git Service

Add documentation to help developers make an RFCOMM conection to a Bluetooth
authorNick Pelly <npelly@google.com>
Wed, 24 Feb 2010 19:19:10 +0000 (11:19 -0800)
committerNick Pelly <npelly@google.com>
Wed, 24 Feb 2010 19:19:10 +0000 (11:19 -0800)
serial board. They all use a well-known UUID that is not really explained
anywhere official, and this always trips developers up.

Change-Id: I53bda44b580f472b1ff1ad196b25485b68f4b5d5

core/java/android/bluetooth/BluetoothDevice.java

index cf9c58f..e77e76f 100644 (file)
@@ -664,6 +664,10 @@ public final class BluetoothDevice implements Parcelable {
      * determine which channel to connect to.
      * <p>The remote device will be authenticated and communication on this
      * socket will be encrypted.
+     * <p>Hint: If you are connecting to a Bluetooth serial board then try
+     * using the well-known SPP UUID 00001101-0000-1000-8000-00805F9B34FB.
+     * However if you are connecting to an Android peer then please generate
+     * your own unique UUID.
      * <p>Requires {@link android.Manifest.permission#BLUETOOTH}
      *
      * @param uuid service record uuid to lookup RFCOMM channel