Android NFC App with BlackBerry 10 support

144 Views Asked by At

I developed an Android app that writes on NFC Tags. Everything is working fine on Android phones with the following code:

override fun onNewIntent(intent: Intent?) {
    [...]
    val nDef = Ndef.get(tag)
    nDef.connect()
    val mimeRecord = NdefRecord.createMime("text/plain", message.toByteArray(Charset.forName("UTF-8")))
    nDef.writeNdefMessage(NdefMessage(mimeRecord))
    nDef.close()
    [...]
}

So nothing special.

Now one of the users uses a BlackBerry 10 and he can't write to the NFC tag (writeNdefMessage is throwing an IOException without a detailed message).

Is there any chance to get this to work?

Thanks in advance.

0

There are 0 best solutions below