aboutsummaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothDevice.java
diff options
context:
space:
mode:
authorNick Pelly <npelly@google.com>2009-09-24 11:14:15 -0700
committerNick Pelly <npelly@google.com>2009-09-24 19:34:54 -0700
commitdc7043578c102cf719049414eb3b81c847d8f00c (patch)
treea7a607514a4b1965d4744d8bf6f409a1142758cc /framework/java/android/bluetooth/BluetoothDevice.java
parent391e8a7d5df5ffd75bf84870c5facf31c02b648e (diff)
Bluetooth API: Do not allow apps to programmatically make BT discoverable.
Instead add ACTION_REQUEST_DISCOVERABLE for the system to show a dialog to adjust discoverable mode. Also remove createBond(), removeBond() and cancelBondProcess(). The Settings App already handles these automatically when connections require bonding. Change-Id: I216154cd1b6de410de64ba91b07d7263ac03e8df
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothDevice.java')
-rw-r--r--framework/java/android/bluetooth/BluetoothDevice.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/framework/java/android/bluetooth/BluetoothDevice.java b/framework/java/android/bluetooth/BluetoothDevice.java
index b52a82260a..c714f692a1 100644
--- a/framework/java/android/bluetooth/BluetoothDevice.java
+++ b/framework/java/android/bluetooth/BluetoothDevice.java
@@ -427,6 +427,7 @@ public final class BluetoothDevice implements Parcelable {
* <p>Requires {@link android.Manifest.permission#BLUETOOTH_ADMIN}.
*
* @return false on immediate error, true if bonding will begin
+ * @hide
*/
public boolean createBond() {
try {
@@ -440,6 +441,7 @@ public final class BluetoothDevice implements Parcelable {
* <p>Requires {@link android.Manifest.permission#BLUETOOTH_ADMIN}.
*
* @return true on sucess, false on error
+ * @hide
*/
public boolean cancelBondProcess() {
try {
@@ -456,6 +458,7 @@ public final class BluetoothDevice implements Parcelable {
* <p>Requires {@link android.Manifest.permission#BLUETOOTH_ADMIN}.
*
* @return true on sucess, false on error
+ * @hide
*/
public boolean removeBond() {
try {