summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2012-04-05 10:41:01 -0700
committerMartijn Coenen <maco@google.com>2012-04-05 10:41:01 -0700
commit6529e5060773d0cba2a87d4161bf10b1b95470aa (patch)
tree49993d3680d650dc469aa67f762963f6ded9972e /src/com
parentff07dc2bb156d62f447bc3613d6df339fa09794c (diff)
downloadpackages_apps_nfc-6529e5060773d0cba2a87d4161bf10b1b95470aa.zip
packages_apps_nfc-6529e5060773d0cba2a87d4161bf10b1b95470aa.tar.gz
packages_apps_nfc-6529e5060773d0cba2a87d4161bf10b1b95470aa.tar.bz2
Force bluetooth OPP to handle ACTION_SEND.
Change-Id: Ib9520b53d699a79d9a7c09cdb3eb27c4e001d7fd
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/nfc/handover/BluetoothOppHandover.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/nfc/handover/BluetoothOppHandover.java b/src/com/android/nfc/handover/BluetoothOppHandover.java
index 5952131..196bcf5 100644
--- a/src/com/android/nfc/handover/BluetoothOppHandover.java
+++ b/src/com/android/nfc/handover/BluetoothOppHandover.java
@@ -32,11 +32,12 @@ public class BluetoothOppHandover {
* to begin the BT sequence. Must be called on Main thread.
*/
public void start() {
- //TODO: Should call setActivity to make sure it goes to Bluetooth
//TODO: either open up BluetoothOppLauncherActivity to all MIME types
// or gracefully handle mime types that can't be sent
Log.d(TAG, "Sending handover intent for " + mDevice.getAddress());
Intent intent = new Intent(Intent.ACTION_SEND);
+ // TODO see if this can be made more robust
+ intent.setPackage("com.android.bluetooth");
intent.setType(mMimeType);
intent.putExtra(Intent.EXTRA_STREAM, mUri);
intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice);