summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Chan <mchan@android.com>2009-11-06 13:33:06 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2009-11-06 13:33:06 -0800
commit811f655366461d0f21f970bcac07dd2084fd54fa (patch)
tree5ee47ed78777aecb3c4c386c1555c85b1c53c195
parent91abf105206f2ba19e886909456b3e3b7ed19362 (diff)
parent8d51f7101d2427953dbff9b4b8f8c9fdc0dc4a91 (diff)
downloadframeworks_base-811f655366461d0f21f970bcac07dd2084fd54fa.zip
frameworks_base-811f655366461d0f21f970bcac07dd2084fd54fa.tar.gz
frameworks_base-811f655366461d0f21f970bcac07dd2084fd54fa.tar.bz2
am 8d51f710: Merge change Icdd2864e into eclair
Merge commit '8d51f7101d2427953dbff9b4b8f8c9fdc0dc4a91' into eclair-mr2 * commit '8d51f7101d2427953dbff9b4b8f8c9fdc0dc4a91': b/2234854 Fixed Bluetooth API return codes for requesting permission to enable bluetooth
-rw-r--r--core/java/android/bluetooth/BluetoothAdapter.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/core/java/android/bluetooth/BluetoothAdapter.java b/core/java/android/bluetooth/BluetoothAdapter.java
index 53bffc1..45c33ef 100644
--- a/core/java/android/bluetooth/BluetoothAdapter.java
+++ b/core/java/android/bluetooth/BluetoothAdapter.java
@@ -126,8 +126,9 @@ public final class BluetoothAdapter {
* <p>Notification of the result of this activity is posted using the
* {@link android.app.Activity#onActivityResult} callback. The
* <code>resultCode</code>
- * will be the duration (in seconds) of discoverability, or a negative
- * value if the user rejected discoverability.
+ * will be the duration (in seconds) of discoverability or
+ * {@link android.app.Activity#RESULT_CANCELED} if the user rejected
+ * discoverability or an error has occurred.
* <p>Applications can also listen for {@link #ACTION_SCAN_MODE_CHANGED}
* for global notification whenever the scan mode changes.
* <p>Requires {@link android.Manifest.permission#BLUETOOTH}
@@ -153,8 +154,9 @@ public final class BluetoothAdapter {
* <p>Notification of the result of this activity is posted using the
* {@link android.app.Activity#onActivityResult} callback. The
* <code>resultCode</code>
- * will be negative if the user did not turn on Bluetooth, and non-negative
- * if Bluetooth has been turned on.
+ * will be {@link android.app.Activity#RESULT_OK} if Bluetooth has been
+ * turned on or {@link android.app.Activity#RESULT_CANCELED} if the user
+ * has rejected the request or an error has occurred.
* <p>Applications can also listen for {@link #ACTION_STATE_CHANGED}
* for global notification whenever Bluetooth is turned on or off.
* <p>Requires {@link android.Manifest.permission#BLUETOOTH}