https://github.com/googlesamples/android-NfcProvisioning
NFC Provisioning app is nothing but an ordinary Android Beam app that just sends out provisioning values to the peer device.
- Store values in an instance of Properties.
- Get a byte array representation of the Properties using ByteArrayOutputStream.
- Create an NdefRecord with the MIME type of DevicePolicyManager.MIME_TYPE_PROVISIONING_NFC.
- Use [NfcAdapter#setNdefPushMessage][2] to set the NdefMessage as the message to be sent.
No comments:
Post a Comment