I am using below sample code to read NFC tag, but it is not reading tag multiple time(sometimes it's reading for 3 time, some time it is reading 6-7 time). In my application I need to read nfc tag continuously.
NFC Reader is not reading NFC tag continuously in android
1.8k Views Asked by Shailendra Haldkar At
1
There are 1 best solutions below
Related Questions in ANDROID
- Creating global Class holder
- Flutter + Dart: Editing name of a tab shows up a black screen
- android-pdf-viewer Received status code 401 from server: Unauthorized
- Sdk 34 WRITE_EXTERNAL_STORAGE not working
- ussd reader in Recket Native module
- Incorrect display of LinearGradientBrush in IOS
- The Binary Version Of its metadata is 1.8.0, expected Version is 1.6.0 build error
- I can't make TextInput to auto expand properly in Android
- Creating multiple instances of a class with different initializing values in Flutter
- How to create a lottie animation
- making android analyze with coverity sast tool
- Flutter plugin development android src not opening after opening example
- I initialize my ViewModel in the Activity with several fragments as tabs, but the fragments(tabs) return null for the updated livedata
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How I can use the shared preferences class?
Related Questions in NFC
- Possible to use NFC for iPad
- Cannot find name 'NDEFReader'
- Get AID from Debit/Credit Card using NFC
- read files on MIFARE DESFire EV2 NFC card with transceive and react-native-nfc-manager
- ESP32 Baud Rate
- NTag216 [Write] command unexpected response code
- How do I read the UID of a tag (e.g. Mifare Classic) using the ACR122U Reader and PCSC library in VB.net
- Android app on Samsung incorrectly reads MiFare card via NFC
- NTag424 DNA ReadData[CommMode.Full] returns 7E
- NFC permission required: Neither user 10711 nor current process has android.permission.NFC
- M24LR16E Drivers not being read with NFC on iOS
- CoreNFC and using the OPTION FLAG
- CoreNFC writing to iCode Slix2 tag doesn't seem stable
- Why can I not import nfc_manager repo as a dependency into my flutter app?
- Is it possible to emulate nfc tag via adb tools?
Related Questions in DEADOBJECTEXCEPTION
- NFC Reader is not reading NFC tag continuously in android
- UdpClient.Close() throwing android.os.DeadObjectException in Unity (with IL2CPP)
- GetPackageInfo results in DeadObjectException
- DeadObjectException only on Android 10
- Android throw DeadObjectException: Transaction failed on small parcel; remote process probably died just in HUAWEI Android 8.0.0
- NFC DeadObjectException when onResume is called
- What are the possible reasons for NFC Service to become dead after some time?
- Android bluetooth: DeadObjectException in BLE callback onNotify
- Ble GattServer DeadObject exception when bluetooth on/off
- ActivityResultContracts.CaptureVideo() crashing with DeadObjectExceptions on API 33?
- Binder runtime exception in android
- Android Glide library LicenseCheckError/DeadObjectException
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
NFC reading can be very picky about the exact placement of the NFC Tag.
Under ideal conditions the range is usually about 4cm Max when aligned with the phones antenna but miss alignment can reduce this range significantly.
Some smaller (non credit card Tags) have a smaller antenna and thus miss alignment and reduced range is more likely.
Also atmospheric and other conditions can reduce the range.
So reliable NFC reading requires the Tag to be in range long enough to be read and NFC reading data rates are not fast so with large amounts it requires more time in range.
So you might want to make sure you are correctly aligning the Tag with the antenna to get reliable NDEF reads. If the centre of the NFC antenna is not marked with the NFC logo then try approaching a Tag or simple field detector (https://www.youtube.com/watch?v=dTv4U5fotM0 ) from different direction to identify the edges of the field to estimate it's centre.
From the source code side the Demo looks correct for using the older NFC API and should read NDEF messages fine.
BUT
The older NFC API is extremely unreliable for use with NDEF writing or reading or writing non NDEF data, this is because it prompts the user poorly with it's detection sounds which you have no control of.
If you want to do anything other than simple NDEF reading I suggest that you use the new and better
enableReaderModeAPI example code for using the enableReaderMode API