From 9d9e511fe7425fb3105ece227ecedb43d6333333 Mon Sep 17 00:00:00 2001 From: Tao Liejun Date: Mon, 21 Sep 2009 20:43:57 +0800 Subject: 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 --- src/com/android/bluetooth/opp/BluetoothOppLauncherActivity.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/com/android/bluetooth/opp/BluetoothOppLauncherActivity.java') 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, -- cgit v1.2.3