Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use NfcAdapter.enableReaderMode() #381

Open
zhpncu opened this issue Apr 4, 2022 · 2 comments
Open

Use NfcAdapter.enableReaderMode() #381

zhpncu opened this issue Apr 4, 2022 · 2 comments

Comments

@zhpncu
Copy link

zhpncu commented Apr 4, 2022

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)

@ikarus23
Copy link
Owner

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 ikarus23 changed the title Can you use NfcAdapter.enableReaderMode() to implement this app? Use NfcAdapter.enableReaderMode() Apr 15, 2022
@zhpncu
Copy link
Author

zhpncu commented Apr 17, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants