Creating an NFC reader and Writer App in Java, Android Studio

  Переглядів 84,614

MasteringProgramming

MasteringProgramming

3 роки тому

#NFCTechnology #Integrating_NFC_in_Android #Android_Development_Tutorial
Welcome back to a brand new episode of MasteringProgramming, in this episode I will be showing you how to integrate NFC capabilities in your Android App using Java and Android Studio
If you would like to purchase a complete IOS App with source code which allows you to write Plain Text and URLs along with reading NFC Tags, Visit the following link. The File contains all the needed information and source code!
www.tapaway.com.au/product-pa...
Would You like to Hire a Professional App Developer? Visit the following link to get in touch with a developer in my team and get started today!
www.tapaway.com.au/product-pa...
Please Follow me on Twitter:
/ david__bolis
Purchase NFC Tags From Amazon:
amzn.to/3jLQXAS
Thank You!!

КОМЕНТАРІ: 165
@hugoandres5480
@hugoandres5480 7 місяців тому
incredible channel, do you recommend a reference source to play with this technology, forum or book, thank you, greetings.
@maxidesantafe87
@maxidesantafe87 8 місяців тому
hola, hay alguna forma de leer una TAG y simularlar, por ejemplo para abrir la puerta de mi casa con mi celualr con nfc??
@mouhcineoussama5532
@mouhcineoussama5532 2 роки тому
That was the best tutorial for the nfc all over UKposts. 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?
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 2 роки тому
Hey I am not sure what xamarin forms are. Could you tell me more?
@josefjanda4008
@josefjanda4008 3 роки тому
It's functional. I didn't see that coming. Thanks. I could use the source code. I've written a lot from this video.
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 3 роки тому
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
@rehanng
@rehanng 9 місяців тому
actually I did not found it functional , app do not open in mobile device I have done same coding as in video
@indranilchaudhuri9237
@indranilchaudhuri9237 2 роки тому
I have one question where you added nfc_tech_filter.xml file in your manifest file
@gamesoo7
@gamesoo7 7 місяців тому
how to set type so we can identify which type dta it is like url or name or mobile while reading tags
@Overceer
@Overceer 3 роки тому
Wonderful. I learned how to copy and paste. Probably could have done with a break down of what the code did.
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 3 роки тому
Sorry I did not understand your sentence. Could you please rephrase ?
@Overceer
@Overceer 3 роки тому
@@MasteringProgrammingTapAway sorry, didn’t check it before I pressed send. Now edited.
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 3 роки тому
@@Overceer No worries, that's true it was possible to breakdown the code a little bit better. However, the tutorial was getting too long.
@eddiefernandez993
@eddiefernandez993 8 місяців тому
I agree, 2 years later and I would say this did not add any value to my knowledge but thanks for trying.
@ahmadbasyir418
@ahmadbasyir418 8 місяців тому
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.
@rasoulcarrera
@rasoulcarrera 3 роки тому
but instead of retyping a Variable could you just import libs alt + Enter
@jichuwi6666
@jichuwi6666 3 роки тому
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.
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 3 роки тому
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?
@jichuwi6666
@jichuwi6666 3 роки тому
@@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.
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 3 роки тому
@@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
@randomvintage6125
@randomvintage6125 Рік тому
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
@arafath_shxfin
@arafath_shxfin Рік тому
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?
@elvismrema4322
@elvismrema4322 5 місяців тому
You saved my carrier, thanks a lot 🙏
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 5 місяців тому
Glad to hear that
@user-ok9gu8cj6g
@user-ok9gu8cj6g 3 роки тому
It was very helpful. I'm curious about reading NFC, not writing it.
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 3 роки тому
Thank you. The tutorial does including nfc reading as well!
@georgesichitiu
@georgesichitiu 9 місяців тому
It's working. Thx.. 5 dolars well spent!
@adnalra5116
@adnalra5116 9 місяців тому
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
@skipthegrades2360
@skipthegrades2360 2 роки тому
which version dude?
@presidentgamingzyt
@presidentgamingzyt 11 місяців тому
amazing, i hate the ads on free tag reader man
@j2adloe542
@j2adloe542 3 роки тому
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!
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 3 роки тому
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
@j2adloe542
@j2adloe542 3 роки тому
@@MasteringProgrammingTapAway I just sent you an email, Hoping for your response!
@miguelalfaro5233
@miguelalfaro5233 Рік тому
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 :(?
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway Рік тому
I think it might be your phone not connecting to the NfC tag. Does your android device have NFC capabilities turned on?
@user-un2si9cr2z
@user-un2si9cr2z Рік тому
Hello, I purchase this project. But I can not open this app. Apk file can install but open is disabled.
@user-uk9nj5bh6p
@user-uk9nj5bh6p Рік тому
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?
@PUPPAP.CHANEL
@PUPPAP.CHANEL Рік тому
ขอบคุณนะคะ
@tamara.armstrong
@tamara.armstrong 3 роки тому
Is it possible to embed social media links ? And if so can you please make a video on this ?
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 3 роки тому
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
@depressedorange9088
@depressedorange9088 3 роки тому
great video. Can you make a video on how to use react native for NFC reading and writing
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 3 роки тому
I will make a video soon, however I’ve noticed that NFC functionality works best with Native environments.
@depressedorange9088
@depressedorange9088 3 роки тому
@@MasteringProgrammingTapAway Oh thanks for the info. :)
@--vv--
@--vv-- 3 роки тому
@@MasteringProgrammingTapAway Could you do this still? or if you have link
@jacobbillotti7626
@jacobbillotti7626 Рік тому
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.
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway Рік тому
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
@mikkelpedersen7685
@mikkelpedersen7685 Рік тому
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
@alejahmiranda6639
@alejahmiranda6639 8 місяців тому
I have the same problem too. Please reply
@feradjyounes5450
@feradjyounes5450 3 роки тому
Please, how do I use infrared on Android?
@user-it5nm2vh6u
@user-it5nm2vh6u 8 місяців тому
Can you give this code link?
@basopro
@basopro 2 роки тому
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 , ...) ?
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 2 роки тому
I think with some playing around you should be able to for sure
@fabiosimoes3133
@fabiosimoes3133 3 роки тому
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
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 3 роки тому
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.
@fabiosimoes3133
@fabiosimoes3133 3 роки тому
@@MasteringProgrammingTapAway so for that I can use the nfc_contents right? Thank you for your response: Fábio Simões
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 3 роки тому
@@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.
@fabiosimoes3133
@fabiosimoes3133 3 роки тому
@@MasteringProgrammingTapAway I want to send just the text that we write on the tag
@samgroeneveld9206
@samgroeneveld9206 Рік тому
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
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway Рік тому
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.
@alaaaloha8208
@alaaaloha8208 2 роки тому
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
@alaaaloha8208
@alaaaloha8208 2 роки тому
Any idea where can I start , do u have some explanations
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 2 роки тому
Sorry but I am not sure exactly
@The_Regolino
@The_Regolino 4 місяці тому
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
@ashokas5812
@ashokas5812 2 роки тому
Peer to peer communication ..like with an IOT (active nfc) with Android ? Any limitations
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 2 роки тому
I am sorry but I do not have enough information on this. Good luck
@melvinhoogendoorn8083
@melvinhoogendoorn8083 3 роки тому
Is it also possible to add more Textviews that wil print also to the tag?
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 3 роки тому
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.
@melvinhoogendoorn8083
@melvinhoogendoorn8083 3 роки тому
@@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
@hueimin4422
@hueimin4422 2 роки тому
Is it possible to share data via nfc between 2 Android devices in an app?
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 2 роки тому
Not from mobile to mobile directly
@fabiosimoes3133
@fabiosimoes3133 3 роки тому
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
@MasteringProgrammingTapAway 3 роки тому
Sure, sorry could you describe the situation a bit better ?
@fabiosimoes3133
@fabiosimoes3133 3 роки тому
@@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
@sirironheart5535
@sirironheart5535 Рік тому
Does this work with NXP RFID Card 13.56MHz Read Write NFC IC ? Please reply. I need to know this for a project.. 😊🙏
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway Рік тому
Hi, yes it should
@sirironheart5535
@sirironheart5535 Рік тому
@@MasteringProgrammingTapAway Thank you 🙏
@engygerges3271
@engygerges3271 2 роки тому
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
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 2 роки тому
Hey Engy, Sorry for the long time to reply. This can defiantly be done. What database are you using? Thanks
@qualitysnaps680
@qualitysnaps680 2 роки тому
Does players like Popl have their own web application or app to read and write nfc tags
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 2 роки тому
Their app is a web app as far as I believe
@qualitysnaps680
@qualitysnaps680 2 роки тому
@@MasteringProgrammingTapAway Thanks . The way they are growing no doubt they will develop an native app for Android and IOS .
@Drozka19
@Drozka19 3 роки тому
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)
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 3 роки тому
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 ?
@haoluong1081
@haoluong1081 Рік тому
what about serial number ,how to read it
@emresolak4794
@emresolak4794 2 роки тому
Is it possible to read rfid tags with nfc integration ?
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 2 роки тому
With android devices I think so.
@ezeevienranullo
@ezeevienranullo 2 роки тому
Hello, is this code is also working on a external reader/writer device ? like this device NFC Reader - ACR122U
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 2 роки тому
Unfortionaly this code only works for Android Phones. Thanks
@cristiancapannini3796
@cristiancapannini3796 3 роки тому
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"); //
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 3 роки тому
www.oracle.com/java/technologies/javase/jdk8-jre8-suported-locales.html This link contains all the codes for each language.
@c99kfm
@c99kfm 2 роки тому
How can a 1080p video be so blurry? Did you upscale it?
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 2 роки тому
I have no idea man. Things just go weird everyone and then but I was using obs for the first time
@gabrielbalbuena7787
@gabrielbalbuena7787 3 роки тому
When I generate the app, says error can´t install the app, even when I turn off play protect
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 3 роки тому
What error do you get in android studio?
@mladenobradovic4121
@mladenobradovic4121 11 місяців тому
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?
@gabrielpalmeri9660
@gabrielpalmeri9660 3 місяці тому
change PendingIntent.FLAG_IMMUTABLE to PendingIntent.FLAG_MUTABLE, sorry for the little delay of the reply
@ulhasanzk2249
@ulhasanzk2249 3 роки тому
what template did you use
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 3 роки тому
Hmm not too sure, but the UI was meant for another project. Sorry
@akshatsharma3392
@akshatsharma3392 3 роки тому
Dude what are the commands to copy and paste the code. Where can i copy the code from?
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 3 роки тому
Hey Akshat, You can find the Source Code here: www.tapaway.com.au/product-page/android-nfc-app-java
@arifurrahman6204
@arifurrahman6204 2 роки тому
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.
@karentechnologies3990
@karentechnologies3990 2 роки тому
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
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 2 роки тому
Yeah I realised from the feedback everyone is giving. Thank You a lot
@irenealfaro497
@irenealfaro497 3 роки тому
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
@irenealfaro497
@irenealfaro497 3 роки тому
I've done exactly what the video said.
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 3 роки тому
Hi, it seems like you might have an issue with the Tag itself.
@irenealfaro497
@irenealfaro497 3 роки тому
@@MasteringProgrammingTapAway :( But when I try to write it with an app downloaded from Play Store it works perfectly.
@fabiosimoes3133
@fabiosimoes3133 3 роки тому
@@irenealfaro497 @MasteringProgramming it happens with me too... is there any reason ?
@fabiosimoes3133
@fabiosimoes3133 3 роки тому
@@MasteringProgrammingTapAway it happens with me too.. is there any reason?
@user-nq7qr1ee1d
@user-nq7qr1ee1d 3 роки тому
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.
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 3 роки тому
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
@emitterlight5976
@emitterlight5976 3 роки тому
Макс, если еще актуально, поменяй код в манифесте на этот:
@pendekarkoding504
@pendekarkoding504 3 роки тому
how to protect tag after write, just write with my app?
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 3 роки тому
You can write a password or lock the tag!
@basopro
@basopro 2 роки тому
My Second question is about security, how to secure card with ( ssl certificate file per example) ...to avoir any card hack?
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 2 роки тому
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.
@osamazaid8087
@osamazaid8087 3 роки тому
does it read rfid cards?
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 3 роки тому
Unfortunately this solution only works for NFC and not rfid!
@serdarpinar6186
@serdarpinar6186 Рік тому
hi.. how can i read nfc in background on IOS. I read nfc but IOS automatically opens popup. ? do you know ?
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway Рік тому
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.
@serdarpinar6186
@serdarpinar6186 Рік тому
@@MasteringProgrammingTapAway thanks alot.. I guessed but it sounded ridiculous. I hope apple gives up on this.
@duynguyenhoang3074
@duynguyenhoang3074 2 роки тому
Any kind of nfc tag is fine, just bring it closer
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 2 роки тому
No Some tags can work some tags will not depending on type
@duynguyenhoang3074
@duynguyenhoang3074 2 роки тому
@@MasteringProgrammingTapAway device don't support!@#@#!@#@!#@!#!@#!@##!#@@#!
@sadiq2574
@sadiq2574 2 місяці тому
hi i want to hire you . i have nfc reader acr122u and i want you to create my project. plz reply
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 2 місяці тому
Hi Sadiq, Sorry for the late reply, I just replied to your email now!
@duynguyenhoang3074
@duynguyenhoang3074 2 роки тому
You run this on a laptop, how do you see it running on a phone? please
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 2 роки тому
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.
@duynguyenhoang3074
@duynguyenhoang3074 2 роки тому
@@MasteringProgrammingTapAway For example, if I don't connect to my phone, can I run it directly on my laptop?
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 2 роки тому
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.
@talhaarif12
@talhaarif12 Рік тому
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??
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway Рік тому
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);
@depressedorange9088
@depressedorange9088 3 роки тому
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
@MasteringProgrammingTapAway 3 роки тому
Are you sure you followed all the steps? There is a part where you need to add the mime type in the manifest.
@depressedorange9088
@depressedorange9088 3 роки тому
@@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
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 3 роки тому
@@depressedorange9088 Sure, Please contact me via twitter, twitter.com/David__Bolis
@adriancastor4815
@adriancastor4815 2 роки тому
Salut, je souhaite fair un sorte que lorsque je passe la carte, il me recupere et affiche l'ID de ma carte. Comment faire ?
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 2 роки тому
Sorry I did not understand
@suaraalam7796
@suaraalam7796 2 роки тому
how to post UID to own server?
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 2 роки тому
once you collect the UID simply just push it to any server or database you have.
@muthuagritechnician7943
@muthuagritechnician7943 Рік тому
Ndef not connected sir
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway Рік тому
What is the error you are getting?
@mihaialexandrupricob1126
@mihaialexandrupricob1126 3 роки тому
imagine providing the link where you copied everything to the people that watch, or at least give the credits
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 3 роки тому
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
@Lokulicious
@Lokulicious 2 роки тому
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.
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 2 роки тому
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
@cjdunn3261
@cjdunn3261 Рік тому
This "tutorial" is you copying and pasting and explaining almost nothing
@muthuagritechnician7943
@muthuagritechnician7943 Рік тому
Hai sir
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway Рік тому
Hi how can I help
@kamardib3089
@kamardib3089 2 роки тому
It doesn't work. Bug detected, won't open.
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 2 роки тому
What’s the bug or error you get ?
@kamardib3089
@kamardib3089 2 роки тому
@@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
@sta.x
@sta.x Рік тому
@@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
@sta.x
@sta.x Рік тому
@@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 };
@SlosII
@SlosII 5 місяців тому
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??!!
@faze7574
@faze7574 3 роки тому
all I heard was simply copy and paste :/
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway 3 роки тому
I apologise, but the video was too long when I explained everything.
@sta.x
@sta.x Рік тому
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 };
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway Рік тому
Thanks a lot man!
@manucod02
@manucod02 Рік тому
You've saved my life thanks dude!!!
@rafaelpierotti3093
@rafaelpierotti3093 11 місяців тому
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
@juancarlosguevaram.4589
@juancarlosguevaram.4589 Рік тому
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);
@MasteringProgrammingTapAway
@MasteringProgrammingTapAway Рік тому
Thank you so much for commenting this, I will pin your comment!
@ahmadbasyir418
@ahmadbasyir418 8 місяців тому
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.
@chosencode5881
@chosencode5881 5 місяців тому
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 created my own NFC Business Card - Here's what happened...
11:40
VittorTech
Переглядів 68 тис.
How to Create an NFC Reader app for IOS (Swift, Xcode, 2019)
10:41
MasteringProgramming
Переглядів 23 тис.
How to get a FREE HYPERCHARGE SKIN!
02:07
Brawl Stars
Переглядів 16 млн
Помилка,  яку зробило військове керівництво 🙄
01:00
Радіо Байрактар
Переглядів 391 тис.
Спектакль для окупантів та ждунів 🤯
00:47
Радіо Байрактар
Переглядів 558 тис.
Fundamentals of NFC/RFID Communications
25:25
maxim integrated
Переглядів 41 тис.
Extremely Useful NFC Home Automation Ideas!
10:09
Smart Home Solver
Переглядів 768 тис.
Apple iPhone sales fall in nearly all countries | BBC News
5:21
BBC News
Переглядів 252 тис.
How to - Desktop Mac & PC NFC Tag Reader/Writer
16:30
That Drone Guy Ty
Переглядів 102 тис.
Google Data Center 360° Tour
8:29
Google Cloud Tech
Переглядів 5 млн
Reading and Writing NFC in React Native
44:44
Tamas Szikszai
Переглядів 19 тис.
Most overpowered way to build mobile apps?
8:33
Beyond Fireship
Переглядів 674 тис.
Bottom Navigation Bar - Android Studio | Fragments | Java | 2022
13:29
How to get a FREE HYPERCHARGE SKIN!
02:07
Brawl Stars
Переглядів 16 млн