我想做復制門禁卡的功能,準備從門禁卡中讀取資料,然后寫到白卡里面,但是該讀取哪些資料呢?
在網上找的程式是用
String data=https://bbs.csdn.net/topics/ NfcUtils.readNFCFromTag(intent);
NfcUtils.writeNFCToTag(this, data, intent);
實作資料寫入的,這樣就能用了嗎?還是需要讀寫其他的資料
另外網上還有用
MifareClassic.readBlock(readAddress)
MifareClassic.writeBlock(readAddress, dataTemp);
實作讀寫的,我能把所有block讀取出來,但是寫入的時候,有部分block寫入失敗,而且寫入成功的block,重新讀取,發現資料還是沒有變化,這又是什么情況
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/269265.html
標籤:Android
