I followed the video and every time I try to write over my NFC tag, my phone vibrates, like if Android is trying to read the tag, but then when I press the button, it displays ERROR_DETECTED (myTag variable is null), any ideas? please
Hi, I followed your steps, but i get next error: Error while executing: am start -n "com.example.nfctag/com.example.nfctag.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER --splashscreen-show-icon Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.nfctag/.MainActivity } Error type 3 Error: Activity class {com.example.nfctag/com.example.nfctag.MainActivity} does not exist. Error while Launching activity Failed to launch an application on all devices Could you help me?
Hello, Im following this tutorial and wanted to ask one thing. when we receive the tag text as plaintext, can we put him in a form to send to a database server? Thank you so much: Fábio Simões
@@fabiosimoes3133 Yep, if you followed the video then yes. However please note that the information written on the tags can sometimes be written in a format that might provide you with some weird characters. If you are going to be sending things to a database, please make sure that you know exactly what kind of data is saved on the tag and on what format.
That was the best tutorial for the nfc all over TH-cam. Thank you so much man. I do have one question, can i implement the main functions of this code and work it out in xamarin forms ? Please i need an answer?
Hello friend, an excellent video. but I have an error when writing to the card 'void android.nfc.tech.Ndef.connect()' on a null object reference. What do you think it could be :(?
thanks for the tutorial! i have a question, which part of the code would correspond only to the reading of the nfc tag? i would be very grateful if you could tell me, please.
Hi Karen and Sorry for the delay in my response. Aside from the UI everything needs to be included for a successful NFC Session. At least this is how I understand this. Could you please share with me what kind of project you are working on?
@@MasteringProgrammingTapAway Don't worry, I've been waiting for your reply. I'm working on my last college project and for it, I need to make an app that reads NFC tags, I saw another tutorial for it, but it didn't really work, and I thought that with yours I could do it. If you have any information I would appreciate it.
@@jichuwi6666 sure, this video should walk you through writing the code necessary to do a read session. If it’s too complicated however I sell the code for just 5$ On my website www.tapaway.com.au/product-page/android-nfc-app-java
Hello 👋 Excuse me for asking, how if we want to use rfid instead of NFC. Which part of the project do we change? Intend to make android app with rfid read capability that can store key numbers, timestamp and device_id in local phone db that updates to a cloud db once online.
Hey not sure if this helps but NFC is a kind of RFID. If you want to use RFID for UHF(Ultra High Frequency) tags you cannot use a normal phone to detect those kind of tags. NFC is just RFID in the freqeunce of 13.56 MHZ. Other RFID operates in 800-900 MHZ
i got a question how can i lock the nfc with the app. so only this particular app can write it. ive heard of using APDU control. but can you explain more about it. thanks
I've replied back to your email saying: I think the best way to do this is to add the card UID in a database, when someone is about to write to a tag you would then check first to see if the tag has the same UID in the database, if yes then write to it.
It's very helpful but the copy/paste and the playback speed tricks are very annoying, Actually this app is big enough to be broken into multiple videos instead
would this app work to read nfc data that is sent from a POS system? I'd like to know what type of information is communicated between a payment app such as google pay, and the card reader. Specifically, I would like to know what information the card reader sends to your phone, as I hope to pull merchant category codes. Would I be able to read all the data sent by a card terminal with this app? I really appreciate the tutorial by the way and if you can answer my question then you really are a god.
Hey Jacob, Sorry for the late response. I researched what you asked, and from what I am understanding yes you can manipulate this code to read from a POS system. Currently this app would not allow you to do that, but you can change it to do so. You will need to check the POS documentation you are using to see how you can make the app communicate with the POS system. Thanks
I'm Italian which string i must put in these rows? String lang = "it"; //ex en byte[] textBytes = text.getBytes(); byte[] langBytes = lang.getBytes("US-ASCII"); //
Hello , id like to make an app dealing with terminal commamds I give to for android , u know termux its a linux environment to do some tasks inside . wt I wanna make is app apply commands in linux environment . i want to make the environment and commandes to be applied . Thanks
Hello if I try to write for the first time in a TAG with nothing in there, the app crashes, but when I write with text in the TAG, it works fine... Can you help me?
@@MasteringProgrammingTapAway so I have my TAG with nothing in there, no plain text content and I write in the app and press the button, the app goes down and the TAG continues empty, but if my TAG already has a plaintext content, I can change the text and the app works fine. I did everything like in the video
Great video! But I have a problem. Every time a press the button I always get myTag==null so I can't write in a NFC Tag, have anyone an idea of what is happening? I can read perfectly but I cannot write :( . Thank you
Hi, why did you create the nfc_tech_filter.xml but you didn't include in your manifest? Your code doesn't works and your demonstration is on your own phone (running another code)
Most people’s feedback say it works. I’ve had some people emailing me saying it doesn’t work and then I resolve it for them. Are you sure you didn’t do anything wrong ?
It’s possible to embed URLs and Links. If you are however interested to create a project like popl or Tappy then this is something I can also do. Please check my website and portfolio as I have created this project multiple times before :) www.tapaway.com.au
Hello, I have a problem where action is always null when i scan nfc tag. String action = intent.getAction(); It's in the readFromIntent method. Do you maybe have an idea what could be the problem there?
Hi Melvin, Sorry for the late reply. It is decently possible to add more TextFields. Also regarding the App crashing, it seems like some people have also complained about this. I am not sure if it is depending on the Android device they have. But from what I am understanding that once they handled the error, it worked straight away. Please let me know if you have fixed that problem. Other wise I can defiantly help you out.
@@MasteringProgrammingTapAway Thansk for the reply. The app crashing is fixed but I am staring blindly at the code but cannot find a part where I cant add more Textfields Where can I find information regarding that
for any following tutorials, make sure to at the very least type the code. you literally showed us how to copy and paste code, and then you ask for 5 euro to actually get the code you copy paste??? you didn't even explain what it does, i have learned basically nothing, and this will just confuse people.
Thank you for the feedback I will use it for future videos. It actually took me 4 hours to come up with this video. NFC is a little bit hard to explain with programming and this was just the easiest way I found. Either way I hope you understand it someday. Good luck
For whoever is trying to implement this on an app, if you're switching from another Activity and you're getting an error (app crashes), you may have to modify the inmutable flag, modify line 71 for this: pendingIntent = PendingIntent.getActivity(this,0,new Intent(this, getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP),PendingIntent.FLAG_IMMUTABLE);
Background reading in IOS has to be done through a pop up notification first. Apple does not allow you to direct the user to anything without them having to make an initial step first such as clicking on the notification.
Hi, good day! Have you created an application that is focused on NFC checking attendance? So like you scan the tag which has a unique NFC number, the app then verifies this number from a database, and if present it then marks it as green on an excel file. This was like our plan for our school project but the Github project on which we based this was not working. And if u have a project like this? how much would you offer it for us? on a side note, do u accept Crypto Payments? Thanks!
Hey J2, I have built a project just like this twice! please email me on davidbolis@tapaway.com.au or send me a message on whatsapp on this number: +61 0429326795 Looking forward to hearing back from you
Hellow pls help me, i have follow every your step. But i have a problem. App is running when i launch it in android studio on my phone, But BIG promlem is that programm does not install app on device.
Hey, Have a look at this link, and it should help you out! stackoverflow.com/questions/46301958/android-studio-installing-apk-on-phone-but-cant-find-the-app
NFC Tags are secure however I would not depend on their security tbh. I would rather store a url or a link to a secure webpage where all the important stuff happens.
No, you need to directly connect the laptop to the phone. you might also wanna look into publishing the app as an apk. but most simple way is through cable.
I'm getting this error. AAPT: error: attribute android:mimetype not found. I followed all the steps, is it smth related to compile SdkVersion? Please help :)
@@MasteringProgrammingTapAway Yes It shows the error when I compile and run it. Says URI not registered following multiple errors. Is there anyway to contact you? Thank you
Hey Mihai, I used NXP datasheet to create this video. First I read the datasheet, then I created a Java file with the code that I will be using. Along with some other resources that I used. To view the datasheet you can visit this link www.nxp.com/docs/en/data-sheet/PN512.pdf
The amound of code required in Java to do just about anything is insane. What a waste of a programmers time. Why do I have to be messing around at the byte level and have intricate knowledge of NFC? This is useless. I just want to read a string or write a string, really??!!
@@MasteringProgrammingTapAway nothing specific, I have no errors when I write the code. It's just when I run the app on my phone, it crashed upon opening and tells me that there's a bug
@@MasteringProgrammingTapAway Same here. I found out that If your app targets Android 12, you must specify the mutability of each PendingIntent object that your app creates. Still havent got it running tho
For whoever is trying to implement this on an app, if you're switching from another Activity and you're getting an error (app crashes), you may have to modify the inmutable flag, modify line 71 for this: pendingIntent = PendingIntent.getActivity(this,0,new Intent(this, getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP),PendingIntent.FLAG_IMMUTABLE);
Guys someone can help me? I did this code, but happen this error error: '{' expected } try catch (IOException e) { ^ In this part of the code } catch (IOException e) { Toast.makeText(context, Erro_Escrever, Toast.LENGTH_LONG). show(); e.printStackTrace(); My e is in red and i don't know why, if someone can help i will be very grateful
I am glad you found it functional! You can actually purchase this source code from my website for only 2$!! www.tapaway.com.au/product-page/android-nfc-app-java
Hello 👋 Excuse me for asking, how if we want to use rfid instead of NFC. Which part of the project do we change? Intend to make android app with rfid read capability that can store key numbers, timestamp and device_id in local phone db that updates to a cloud db once online.
You saved my carrier, thanks a lot 🙏
Glad to hear that
Wonderful. I learned how to copy and paste. Probably could have done with a break down of what the code did.
Sorry I did not understand your sentence. Could you please rephrase ?
@@MasteringProgrammingTapAway sorry, didn’t check it before I pressed send. Now edited.
@@Overceer No worries,
that's true it was possible to breakdown the code a little bit better. However, the tutorial was getting too long.
I agree, 2 years later and I would say this did not add any value to my knowledge but thanks for trying.
I followed the video and every time I try to write over my NFC tag, my phone vibrates, like if Android is trying to read the tag, but then when I press the button, it displays ERROR_DETECTED (myTag variable is null), any ideas? please
sir can you help me i have some problem when i want to connect MY Application to External NFC Reader. I did what acs did, but still can't connect
It's working. Thx.. 5 dolars well spent!
Hi, I followed your steps, but i get next error: Error while executing: am start -n "com.example.nfctag/com.example.nfctag.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER --splashscreen-show-icon
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.nfctag/.MainActivity }
Error type 3
Error: Activity class {com.example.nfctag/com.example.nfctag.MainActivity} does not exist.
Error while Launching activity
Failed to launch an application on all devices
Could you help me?
incredible channel, do you recommend a reference source to play with this technology, forum or book, thank you, greetings.
Hello, Im following this tutorial and wanted to ask one thing. when we receive the tag text as plaintext, can we put him in a form to send to a database server?
Thank you so much:
Fábio Simões
You can do anything you wish to do after scanning the tag.
Thank you for watching my videos and please feel free to continue asking me any questions.
@@MasteringProgrammingTapAway so for that I can use the nfc_contents right?
Thank you for your response:
Fábio Simões
@@fabiosimoes3133 Yep, if you followed the video then yes. However please note that the information written on the tags can sometimes be written in a format that might provide you with some weird characters. If you are going to be sending things to a database, please make sure that you know exactly what kind of data is saved on the tag and on what format.
@@MasteringProgrammingTapAway I want to send just the text that we write on the tag
That was the best tutorial for the nfc all over TH-cam. Thank you so much man. I do have one question, can i implement the main functions of this code and work it out in xamarin forms ? Please i need an answer?
Hey I am not sure what xamarin forms are. Could you tell me more?
but instead of retyping a Variable could you just import libs alt + Enter
Hello friend, an excellent video. but I have an error when writing to the card 'void android.nfc.tech.Ndef.connect()' on a null object reference. What do you think it could be :(?
I think it might be your phone not connecting to the NfC tag.
Does your android device have NFC capabilities turned on?
I have one question where you added nfc_tech_filter.xml file in your manifest file
thanks for the tutorial! i have a question, which part of the code would correspond only to the reading of the nfc tag? i would be very grateful if you could tell me, please.
Hi Karen and Sorry for the delay in my response.
Aside from the UI everything needs to be included for a successful NFC Session. At least this is how I understand this.
Could you please share with me what kind of project you are working on?
@@MasteringProgrammingTapAway Don't worry, I've been waiting for your reply.
I'm working on my last college project and for it, I need to make an app that reads NFC tags, I saw another tutorial for it, but it didn't really work, and I thought that with yours I could do it. If you have any information I would appreciate it.
@@jichuwi6666 sure, this video should walk you through writing the code necessary to do a read session.
If it’s too complicated however I sell the code for just
5$
On my website
www.tapaway.com.au/product-page/android-nfc-app-java
hey, can you help? nfc_contents.setText("NFC content: " + text); and the text will not show up on the app, and I can read the info of the NFC tag
I have the same problem too. Please reply
amazing, i hate the ads on free tag reader man
is it possible to copy my access card( which has nfc ) information and use it to open my door by just using my phone's nfc capability?
Fix for Android 12:
readfromIntent(getIntent());
pendingIntent = PendingIntent.getActivity(this, 0, new Intent(this, getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP), PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_MUTABLE);
IntentFilter tagDetected = new IntentFilter(NfcAdapter.ACTION_TAG_DISCOVERED);
tagDetected.addCategory(Intent.CATEGORY_DEFAULT);
writingTagFilters = new IntentFilter[] { tagDetected };
Thanks a lot man!
You've saved my life thanks dude!!!
tyty
ขอบคุณนะคะ
Hello 👋
Excuse me for asking, how if we want to use rfid instead of NFC. Which part of the project do we change? Intend to make android app with rfid read capability that can store key numbers, timestamp and device_id in local phone db that updates to a cloud db once online.
Hey not sure if this helps but NFC is a kind of RFID. If you want to use RFID for UHF(Ultra High Frequency) tags you cannot use a normal phone to detect those kind of tags. NFC is just RFID in the freqeunce of 13.56 MHZ. Other RFID operates in 800-900 MHZ
hola, hay alguna forma de leer una TAG y simularlar, por ejemplo para abrir la puerta de mi casa con mi celualr con nfc??
Does players like Popl have their own web application or app to read and write nfc tags
Their app is a web app as far as I believe
@@MasteringProgrammingTapAway Thanks . The way they are growing no doubt they will develop an native app for Android and IOS .
Does this work with NXP RFID Card 13.56MHz Read Write NFC IC ? Please reply. I need to know this for a project.. 😊🙏
Hi, yes it should
@@MasteringProgrammingTapAway Thank you 🙏
Is it possible to share data via nfc between 2 Android devices in an app?
Not from mobile to mobile directly
which version dude?
does it will read the temperature of tag
i got a question how can i lock the nfc with the app. so only this particular app can write it. ive heard of using APDU control. but can you explain more about it. thanks
I've replied back to your email saying:
I think the best way to do this is to add the card UID in a database, when someone is about to write to a tag you would then check first to see if the tag has the same UID in the database, if yes then write to it.
Hello, I purchase this project. But I can not open this app. Apk file can install but open is disabled.
It's very helpful but the copy/paste and the playback speed tricks are very annoying, Actually this app is big enough to be broken into multiple videos instead
Yeah I realised from the feedback everyone is giving.
Thank You a lot
would this app work to read nfc data that is sent from a POS system? I'd like to know what type of information is communicated between a payment app such as google pay, and the card reader. Specifically, I would like to know what information the card reader sends to your phone, as I hope to pull merchant category codes. Would I be able to read all the data sent by a card terminal with this app? I really appreciate the tutorial by the way and if you can answer my question then you really are a god.
Hey Jacob,
Sorry for the late response.
I researched what you asked, and from what I am understanding yes you can manipulate this code to read from a POS system.
Currently this app would not allow you to do that, but you can change it to do so.
You will need to check the POS documentation you are using to see how you can make the app communicate with the POS system.
Thanks
I'm Italian which string i must put in these rows?
String lang = "it"; //ex en
byte[] textBytes = text.getBytes();
byte[] langBytes = lang.getBytes("US-ASCII"); //
www.oracle.com/java/technologies/javase/jdk8-jre8-suported-locales.html
This link contains all the codes for each language.
how to set type so we can identify which type dta it is like url or name or mobile while reading tags
Please, how do I use infrared on Android?
Hello , id like to make an app dealing with terminal commamds I give to for android , u know termux its a linux environment to do some tasks inside . wt I wanna make is app apply commands in linux environment . i want to make the environment and commandes to be applied .
Thanks
Any idea where can I start , do u have some explanations
Sorry but I am not sure exactly
Is it possible to read rfid tags with nfc integration ?
With android devices I think so.
is it possible to get the number of the power which nfc tag get through the phone by programming it
You can get all information the tag interacts with!
Hello if I try to write for the first time in a TAG with nothing in there, the app crashes, but when I write with text in the TAG, it works fine...
Can you help me?
Sure, sorry could you describe the situation a bit better ?
@@MasteringProgrammingTapAway so I have my TAG with nothing in there, no plain text content and I write in the app and press the button, the app goes down and the TAG continues empty, but if my TAG already has a plaintext content, I can change the text and the app works fine. I did everything like in the video
Great video! But I have a problem. Every time a press the button I always get myTag==null so I can't write in a NFC Tag, have anyone an idea of what is happening? I can read perfectly but I cannot write :( . Thank you
I've done exactly what the video said.
Hi, it seems like you might have an issue with the Tag itself.
@@MasteringProgrammingTapAway :( But when I try to write it with an app downloaded from Play Store it works perfectly.
@@irenealfaro497 @MasteringProgramming it happens with me too... is there any reason ?
@@MasteringProgrammingTapAway it happens with me too.. is there any reason?
Peer to peer communication ..like with an IOT (active nfc) with Android ? Any limitations
I am sorry but I do not have enough information on this. Good luck
Mai i know this is old the i checked the code 10 times but still not working cant find the mytag when is near the device
Hi, why did you create the nfc_tech_filter.xml but you didn't include in your manifest? Your code doesn't works and your demonstration is on your own phone (running another code)
Most people’s feedback say it works. I’ve had some people emailing me saying it doesn’t work and then I resolve it for them.
Are you sure you didn’t do anything wrong ?
Is it possible to embed social media links ? And if so can you please make a video on this ?
It’s possible to embed URLs and Links. If you are however interested to create a project like popl or Tappy then this is something I can also do.
Please check my website and portfolio as I have created this project multiple times before :)
www.tapaway.com.au
It was very helpful.
I'm curious about reading NFC, not writing it.
Thank you. The tutorial does including nfc reading as well!
When I generate the app, says error can´t install the app, even when I turn off play protect
What error do you get in android studio?
How can a 1080p video be so blurry? Did you upscale it?
I have no idea man. Things just go weird everyone and then but I was using obs for the first time
Hi @Masterprogramming, can i use this code to write on MiFare NFC card for fuel Payment card ( write, and read card balance, card Pin Code , ...) ?
I think with some playing around you should be able to for sure
This "tutorial" is you copying and pasting and explaining almost nothing
Dude what are the commands to copy and paste the code. Where can i copy the code from?
Hey Akshat,
You can find the Source Code here:
www.tapaway.com.au/product-page/android-nfc-app-java
Great i want help .. i want code to detect UID of nfc tag and if the UID in the database write on it if not UID on database not write on nfc tag
Hey Engy,
Sorry for the long time to reply.
This can defiantly be done. What database are you using?
Thanks
Hello, is this code is also working on a external reader/writer device ? like this device NFC Reader - ACR122U
Unfortionaly this code only works for Android Phones.
Thanks
Hello, I have a problem where action is always null when i scan nfc tag.
String action = intent.getAction();
It's in the readFromIntent method. Do you maybe have an idea what could be the problem there?
change PendingIntent.FLAG_IMMUTABLE to PendingIntent.FLAG_MUTABLE, sorry for the little delay of the reply
what template did you use
Hmm not too sure, but the UI was meant for another project.
Sorry
Is it also possible to add more Textviews that wil print also to the tag?
Hi Melvin, Sorry for the late reply. It is decently possible to add more TextFields. Also regarding the App crashing, it seems like some people have also complained about this. I am not sure if it is depending on the Android device they have. But from what I am understanding that once they handled the error, it worked straight away. Please let me know if you have fixed that problem. Other wise I can defiantly help you out.
@@MasteringProgrammingTapAway Thansk for the reply. The app crashing is fixed but I am staring blindly at the code but cannot find a part where I cant add more Textfields Where can I find information regarding that
for any following tutorials, make sure to at the very least type the code. you literally showed us how to copy and paste code, and then you ask for 5 euro to actually get the code you copy paste??? you didn't even explain what it does, i have learned basically nothing, and this will just confuse people.
Thank you for the feedback I will use it for future videos. It actually took me 4 hours to come up with this video. NFC is a little bit hard to explain with programming and this was just the easiest way I found. Either way I hope you understand it someday. Good luck
I try to build an apk and install it on my phone, but cant open it and cant find out why? Can you please help??
For whoever is trying to implement this on an app, if you're switching from another Activity and you're getting an error (app crashes), you may have to modify the inmutable flag, modify line 71 for this:
pendingIntent = PendingIntent.getActivity(this,0,new Intent(this, getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP),PendingIntent.FLAG_IMMUTABLE);
i am getting BUTTON RELEASED instead of getting the actual text while reading scanning the text inside.Could anyone please help?Its freaking me out.
Can you give this code link?
hi.. how can i read nfc in background on IOS. I read nfc but IOS automatically opens popup. ? do you know ?
Background reading in IOS has to be done through a pop up notification first. Apple does not allow you to direct the user to anything without them having to make an initial step first such as clicking on the notification.
@@MasteringProgrammingTapAway thanks alot.. I guessed but it sounded ridiculous. I hope apple gives up on this.
Hi, good day! Have you created an application that is focused on NFC checking attendance? So like you scan the tag which has a unique NFC number, the app then verifies this number from a database, and if present it then marks it as green on an excel file. This was like our plan for our school project but the Github project on which we based this was not working. And if u have a project like this? how much would you offer it for us? on a side note, do u accept Crypto Payments? Thanks!
Hey J2,
I have built a project just like this twice!
please email me on davidbolis@tapaway.com.au
or send me a message on whatsapp on this number: +61 0429326795
Looking forward to hearing back from you
@@MasteringProgrammingTapAway I just sent you an email, Hoping for your response!
Hellow pls help me, i have follow every your step. But i have a problem. App is running when i launch it in android studio on my phone, But BIG promlem is that programm does not install app on device.
Hey, Have a look at this link, and it should help you out!
stackoverflow.com/questions/46301958/android-studio-installing-apk-on-phone-but-cant-find-the-app
Макс, если еще актуально, поменяй код в манифесте на этот:
My Second question is about security, how to secure card with ( ssl certificate file per example) ...to avoir any card hack?
NFC Tags are secure however I would not depend on their security tbh.
I would rather store a url or a link to a secure webpage where all the important stuff happens.
what about serial number ,how to read it
Salut, je souhaite fair un sorte que lorsque je passe la carte, il me recupere et affiche l'ID de ma carte. Comment faire ?
Sorry I did not understand
hi i want to hire you . i have nfc reader acr122u and i want you to create my project. plz reply
Hi Sadiq,
Sorry for the late reply, I just replied to your email now!
You run this on a laptop, how do you see it running on a phone? please
I have an android device connected to the laptop. I share the screen of the android device on the computer and then record the entire screen.
@@MasteringProgrammingTapAway For example, if I don't connect to my phone, can I run it directly on my laptop?
No, you need to directly connect the laptop to the phone. you might also wanna look into publishing the app as an apk. but most simple way is through cable.
I'm getting this error. AAPT: error: attribute android:mimetype not found. I followed all the steps, is it smth related to compile SdkVersion? Please help :)
Are you sure you followed all the steps? There is a part where you need to add the mime type in the manifest.
@@MasteringProgrammingTapAway Yes It shows the error when I compile and run it. Says URI not registered following multiple errors. Is there anyway to contact you? Thank you
@@depressedorange9088 Sure, Please contact me via twitter, twitter.com/David__Bolis
imagine providing the link where you copied everything to the people that watch, or at least give the credits
Hey Mihai,
I used NXP datasheet to create this video. First I read the datasheet, then I created a Java file with the code that I will be using. Along with some other resources that I used.
To view the datasheet you can visit this link
www.nxp.com/docs/en/data-sheet/PN512.pdf
how to protect tag after write, just write with my app?
You can write a password or lock the tag!
Any kind of nfc tag is fine, just bring it closer
No Some tags can work some tags will not depending on type
@@MasteringProgrammingTapAway device don't support!@#@#!@#@!#@!#!@#!@##!#@@#!
does it read rfid cards?
Unfortunately this solution only works for NFC and not rfid!
great video. Can you make a video on how to use react native for NFC reading and writing
I will make a video soon, however I’ve noticed that NFC functionality works best with Native environments.
@@MasteringProgrammingTapAway Oh thanks for the info. :)
@@MasteringProgrammingTapAway Could you do this still? or if you have link
Ndef not connected sir
What is the error you are getting?
how to post UID to own server?
once you collect the UID simply just push it to any server or database you have.
The amound of code required in Java to do just about anything is insane. What a waste of a programmers time. Why do I have to be messing around at the byte level and have intricate knowledge of NFC? This is useless. I just want to read a string or write a string, really??!!
Hai sir
Hi how can I help
It doesn't work.
Bug detected, won't open.
What’s the bug or error you get ?
@@MasteringProgrammingTapAway nothing specific, I have no errors when I write the code.
It's just when I run the app on my phone, it crashed upon opening and tells me that there's a bug
@@MasteringProgrammingTapAway Same here. I found out that If your app targets Android 12, you must specify the mutability of each PendingIntent object that your app creates.
Still havent got it running tho
@@kamardib3089 Fixed it for Android 12:
readfromIntent(getIntent());
pendingIntent = PendingIntent.getActivity(this, 0, new Intent(this, getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP), PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_MUTABLE);
IntentFilter tagDetected = new IntentFilter(NfcAdapter.ACTION_TAG_DISCOVERED);
tagDetected.addCategory(Intent.CATEGORY_DEFAULT);
writingTagFilters = new IntentFilter[] { tagDetected };
@@sta.x thxx brooo
all I heard was simply copy and paste :/
I apologise, but the video was too long when I explained everything.
You don't need to store context in a global variable. Please do not do these things on your videos. People will think it's ok
What’s the best approach to do this? Thanks
For whoever is trying to implement this on an app, if you're switching from another Activity and you're getting an error (app crashes), you may have to modify the inmutable flag, modify line 71 for this:
pendingIntent = PendingIntent.getActivity(this,0,new Intent(this, getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP),PendingIntent.FLAG_IMMUTABLE);
Thank you so much for commenting this, I will pin your comment!
Guys someone can help me? I did this code, but happen this error
error: '{' expected
} try catch (IOException e) {
^
In this part of the code
} catch (IOException e) {
Toast.makeText(context, Erro_Escrever, Toast.LENGTH_LONG). show();
e.printStackTrace();
My e is in red and i don't know why, if someone can help i will be very grateful
It's functional. I didn't see that coming. Thanks. I could use the source code. I've written a lot from this video.
I am glad you found it functional!
You can actually purchase this source code from my website for only 2$!!
www.tapaway.com.au/product-page/android-nfc-app-java
actually I did not found it functional , app do not open in mobile device I have done same coding as in video
Hello 👋
Excuse me for asking, how if we want to use rfid instead of NFC. Which part of the project do we change? Intend to make android app with rfid read capability that can store key numbers, timestamp and device_id in local phone db that updates to a cloud db once online.