Tuesday, April 14, 2015

Android : NFC provisioning

http://developer.android.com/reference/android/app/admin/DevicePolicyManager.html#MIME_TYPE_PROVISIONING_NFC
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:

Related Posts Plugin for WordPress, Blogger...