【发布时间】:2014-02-03 14:03:49
【问题描述】:
我正在写我的NFCAsyncTasksdoInBackground()。当我编写 NdefRecord 时,它运行良好,但是当我尝试将标签设为只读时,我得到了IOException。以下是发生异常的代码:
if (readOnly && !ndef.canMakeReadOnly()) {
throw new NdefCantMakeReadOnlyException(R.string.cant_make_read_only);
} else if (readOnly) {
ndef.makeReadOnly(); //IOException
}
此 makeReadOnly 适用于 Mifare Ultralight (MF0ICU1) 标签。
【问题讨论】: