diff options
author | Martijn Coenen <maco@google.com> | 2012-07-23 09:44:37 -0700 |
---|---|---|
committer | Martijn Coenen <maco@google.com> | 2012-07-23 09:44:37 -0700 |
commit | 63cccc4b5096fd9cbcb08410e69f7932375b4bc6 (patch) | |
tree | 1bce215539a0972c76a9ec5775c03ab168c3a890 /src/com/android/nfc/handover | |
parent | 6ec667f0ec362107d7844bc4a6b8cdfe28948087 (diff) | |
download | packages_apps_nfc-63cccc4b5096fd9cbcb08410e69f7932375b4bc6.zip packages_apps_nfc-63cccc4b5096fd9cbcb08410e69f7932375b4bc6.tar.gz packages_apps_nfc-63cccc4b5096fd9cbcb08410e69f7932375b4bc6.tar.bz2 |
Fix type of collision resolution record.
Bug: 6759842
Change-Id: I0fe1e6859d8792b959a1306404bd239ab33dd3b4
Diffstat (limited to 'src/com/android/nfc/handover')
-rw-r--r-- | src/com/android/nfc/handover/HandoverManager.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/nfc/handover/HandoverManager.java b/src/com/android/nfc/handover/HandoverManager.java index 51b123c..f77f780 100644 --- a/src/com/android/nfc/handover/HandoverManager.java +++ b/src/com/android/nfc/handover/HandoverManager.java @@ -71,6 +71,8 @@ public class HandoverManager implements BluetoothProfile.ServiceListener, static final byte[] TYPE_BT_OOB = "application/vnd.bluetooth.ep.oob". getBytes(Charset.forName("US_ASCII")); + static final byte[] RTD_COLLISION_RESOLUTION = {0x63, 0x72}; // "cr"; + static final String ACTION_BT_OPP_TRANSFER_PROGRESS = "android.btopp.intent.action.BT_OPP_TRANSFER_PROGRESS"; @@ -642,7 +644,7 @@ public class HandoverManager implements BluetoothProfile.ServiceListener, static NdefRecord createCollisionRecord() { byte[] random = new byte[2]; new Random().nextBytes(random); - return new NdefRecord(NdefRecord.TNF_WELL_KNOWN, NdefRecord.RTD_HANDOVER_REQUEST, null, random); + return new NdefRecord(NdefRecord.TNF_WELL_KNOWN, RTD_COLLISION_RESOLUTION, null, random); } NdefRecord createBluetoothAlternateCarrierRecord(boolean activating) { |