diff options
author | Tao Liejun <L.J.Tao@motorola.com> | 2009-09-21 20:43:57 +0800 |
---|---|---|
committer | Jaikumar Ganesh <jaikumar@google.com> | 2009-09-23 18:36:07 -0700 |
commit | 9d9e511fe7425fb3105ece227ecedb43d6333333 (patch) | |
tree | 3bce2348872fddad1061b7465f95e8b33b766948 /src/com/android/bluetooth/opp/BluetoothOppLauncherActivity.java | |
parent | c4b72ebe2ed9cd29c40a75411702ca9dca9424ac (diff) | |
download | android_packages_apps_Bluetooth-9d9e511fe7425fb3105ece227ecedb43d6333333.tar.gz android_packages_apps_Bluetooth-9d9e511fe7425fb3105ece227ecedb43d6333333.tar.bz2 android_packages_apps_Bluetooth-9d9e511fe7425fb3105ece227ecedb43d6333333.zip |
Use new SDP API for OPP
Use new API BluetoothDevice.fetchUuidsWithSdp() to query SDP for un-paired device, and request SDP
update when Opp is not in cache.
Handle a concurrent case when incoming connection and file share happens together
Some other minor changes
Change-Id: I7ebf34801518867553551d8f7bba7ac62e22667e
Diffstat (limited to 'src/com/android/bluetooth/opp/BluetoothOppLauncherActivity.java')
-rw-r--r-- | src/com/android/bluetooth/opp/BluetoothOppLauncherActivity.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/bluetooth/opp/BluetoothOppLauncherActivity.java b/src/com/android/bluetooth/opp/BluetoothOppLauncherActivity.java index 3cbc1bc74..d0f9ff30c 100644 --- a/src/com/android/bluetooth/opp/BluetoothOppLauncherActivity.java +++ b/src/com/android/bluetooth/opp/BluetoothOppLauncherActivity.java @@ -121,8 +121,7 @@ public class BluetoothOppLauncherActivity extends Activity { if (V) Log.v(TAG, "BT already enabled!! "); Intent in1 = new Intent(BluetoothDevicePicker.ACTION_LAUNCH); in1.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); - //TODO modify to false after SDP query is ok - in1.putExtra(BluetoothDevicePicker.EXTRA_NEED_AUTH, true); + in1.putExtra(BluetoothDevicePicker.EXTRA_NEED_AUTH, false); in1.putExtra(BluetoothDevicePicker.EXTRA_FILTER_TYPE, BluetoothDevicePicker.FILTER_TYPE_TRANSFER); in1.putExtra(BluetoothDevicePicker.EXTRA_LAUNCH_PACKAGE, |