- Jun 6, 2020
- 11,559
- 4,422
NFC v2.00 adds support for low level access to the NFC features. This allows reading and writing from NFC tags.
The NFC library provides three features:
- Reading Ndef tags based intent filters:
- Sending data between two devices (Android Beam):
- Low level access to the tag.
This tutorial explains how you can use the low level access to read and write Ndef tags. It is also possible to extend it to other types of tags. However you will need to implement the required protocol yourself.
When a tag is scanned, the system sends an intent. The first step is to call NFC.EnableForegroundDispatch in Activity_Resume. This will force the system to send the intent to our activity instead of sending it to a different app.
You should call NFC.DisableForegroundDispatch in Activity_Pause.
Activity_Resume will be called when an intent is sent to our activity. We need to check two...
The NFC library provides three features:
- Reading Ndef tags based intent filters:
برای دیدن لینک ها باید ثبت نام کنید
- Sending data between two devices (Android Beam):
برای دیدن لینک ها باید ثبت نام کنید
- Low level access to the tag.
This tutorial explains how you can use the low level access to read and write Ndef tags. It is also possible to extend it to other types of tags. However you will need to implement the required protocol yourself.
برای دیدن تصاویر باید ثبت نام کنید
When a tag is scanned, the system sends an intent. The first step is to call NFC.EnableForegroundDispatch in Activity_Resume. This will force the system to send the intent to our activity instead of sending it to a different app.
You should call NFC.DisableForegroundDispatch in Activity_Pause.
Activity_Resume will be called when an intent is sent to our activity. We need to check two...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید