MifareClassicTool icon indicating copy to clipboard operation
MifareClassicTool copied to clipboard

Use NfcAdapter.enableReaderMode()

Open zhpncu opened this issue 2 years ago • 2 comments

Hi ,

Can you use NfcAdapter.enableReaderMode() to implement this app?

Because this method already exists after android 4.4, this method is better for reading the card

https://developer.android.com/reference/android/nfc/NfcAdapter public void enableReaderMode (Activity activity, NfcAdapter.ReaderCallback callback, int flags, Bundle extras)

zhpncu avatar Apr 04 '22 14:04 zhpncu

That is a good idea. I always wanted to use this function, but when I started MCT it was compatible all the way down to Android 2.3 which had no enableReaderMode(). Since the current minimum is Android 4.4 there should be no issue in using it.

ikarus23 avatar Apr 15 '22 13:04 ikarus23

Yes, but now there are few phones below Android 4.4, the latest to Android 12, I still recommend you see if you can add this function, if it is compatible with Android 4.4 before, you can also use android sdk level to judge it.

zhpncu avatar Apr 17 '22 02:04 zhpncu