Just awesome, you saved an entire student project with this tutorial. 1 billion thanks!
@adelsehimi28883 жыл бұрын
i need u bro
@3dgiftz2 жыл бұрын
Does this scanner needs internet
@AwesomeDevNotes4 жыл бұрын
Love it. Short and no BS tutorial as it should be 🐣
@thaliaamargianou78703 жыл бұрын
Congrats..! Very good job! Thanks... Your Vtutorials are great with a very simple explanation! Keep up the good work!!! We support you!
@Indently3 жыл бұрын
Very happy to hear, thanks for the support!
@3dgiftz2 жыл бұрын
Do this scanner needs internet??
@grampygamer85843 жыл бұрын
I did it the Java way for a larf... worked first time! Awesome tutorial, thank you
@jaysonverzon1723 жыл бұрын
can show code?
@mattileazarelenquiblat3 жыл бұрын
Can you show the code?
@vijithviswambharan7753 жыл бұрын
share the code plz
@programmer1111x2 жыл бұрын
The "Remeber to subscribe" barcode is so creative to do
@farhan-momin9 ай бұрын
Simple and to the point tutorial! everything was step and step and easy to understand even though i made my app in java, following this tutorial along with help of chatgpt made it super easy thanks very much!
@Hrit2 жыл бұрын
Simple and Direct! Loved the tutorial.
@androidstudio15643 жыл бұрын
Very helpful to fellow developers.
@razvanandrei16943 жыл бұрын
Thanks for the tutorial. Very useful. But what if I want to display the dialog with camera permissions only first time when the app is installed? The next time Camera should already be allowed
@refugiocamarenasainz4 жыл бұрын
I tried to make the app, but had an error Unresolved reference: scanner_view Any sugestion ?
@littlenosydragon17544 жыл бұрын
class MainActivity : AppCompatActivity() { ... private lateinit var scanner_view: CodeScannerView private lateinit var tv_textview: TextView ... override fun onCreate(savedInstanceState: Bundle?) { ... tv_textview = findViewById(R.id.tv_textview) scanner_view = findViewById(R.id.scanner_view) ...
@rhenestayo55914 жыл бұрын
i have the same proble with you sir
@diegosilva16834 жыл бұрын
you have to add xmlns:app="schemas.android.com/apk/res-auto" on top
@edwin21624 жыл бұрын
@@littlenosydragon1754 thanks bro
@musicalcoder76993 жыл бұрын
@@littlenosydragon1754 Thank you - none of the other fixes listed were working for me!
@davidepasero70322 жыл бұрын
Congratulations for this excellent video. Exactly what I needed! Bravo Bravo
@deanbonsu34014 жыл бұрын
Hey sei il migliore. I really enjoy your videos and you should do more kotlin tutorials. I just learned java and watching your videos kotlin makes so much more sense. Is there anyway to brighten the codescanner view? I have noticed that the camera preview is darker than my normal camera preview. You just gained a fan !!
@Indently4 жыл бұрын
Mi rende molto felice sentire che i miei video ti hanno aiutato a capire meglio come funzionano le cose :) Penso che puoi modificarlo nello XML file che lo contiene. Ma non sono troppo sicuro.
@jasferducusin86723 жыл бұрын
Very straightforward! Thank you so much
@parchez112 жыл бұрын
Oh my God, thanks thanks thanks!!!!!!!! U give me solution that i seek for 3 days. THANKS!
@スヘア4 жыл бұрын
Such a great tutorial. Thank you so much
@jeromelabsan1428 Жыл бұрын
can I use this in the latest android studio? it seems the code you are typing gets red in mine
@txrav85173 жыл бұрын
i have question how to make the scanner automatically go to the link that benn scanned in the app without showing url in the textview
@deanwalker39563 жыл бұрын
First, thank you for teaching this. This is really much appreciated. But I have a question. The scanner continuously scans barcodes. Example, I scan barcode A, and while the scanner is pointed at the code, it still keeps scanning. So, the scanner pointing at the barcode for 3 seconds results in dozens and dozens of scanning of the same barcode.. How can I make it so that after scanning a barcode once, the scanner stops? EDIT: I figured it out. What I did was this: Create two variables. newCode and prevCode. Scan the code. Assign the new code to newCode. if (newCode != prevCode), proceed. prevCode = newCode else, do something.
@saidfeki9083 жыл бұрын
Hi dean can you upload a pic of your code and share it with us. Thank you
@bryonic76112 жыл бұрын
if anyone has a problem with scanner_view not being recognized you can solve this pretty easily by inserting { id 'kotlin-android-extensions' } in the plugins section of the app build.gradle and then import on the mainactivity file { import kotlinx.android.synthetic.main.activity_main.* } Hope this helps someone
@cr3amyn3ll662 жыл бұрын
It did, thank you very much!
@arma30532 жыл бұрын
im trying to import the { import kotlinx.android.synthetic.main.activity_main.* } in to mainactivity, yet i can't get it to work. I get an error and the scanner is still not poping up in the activity_main file.
@jamesbrianvillar82102 жыл бұрын
@@arma3053 same
@Loulilta Жыл бұрын
I try it but it doesn't work ?
@Loulilta Жыл бұрын
@@arma3053 did you find a solution ?
@harshbhanushali99443 жыл бұрын
i got error intv_tevtview and scanner_view what to do plzz tell
@abhishekpurohit88673 жыл бұрын
Thanks a lot for this video. It's very helpful
@TypicallyThomas2 жыл бұрын
This won't work for me. It keeps telling me I have unresolved references when referencing the ID's in the XML file
@gmiampec2 жыл бұрын
I am facing the same problem? Have you got the answer?
@TypicallyThomas2 жыл бұрын
@@gmiampec nope
@movimientoenelespacio3 жыл бұрын
Amazing ! Now how can I get product informations from this scanned barcode. I saw few database API for this. But how to implement them ?
@movimientoenelespacio3 жыл бұрын
Good Tutorial ! But I've got an issue : Unresolved reference: scanner_view. Can you help me out? Thank you
@movimientoenelespacio3 жыл бұрын
My apologies it was my mistake. Awesome tutorial !
@dxxxlan3 жыл бұрын
I have the same problem, what did you fix?
@sqrpro53183 жыл бұрын
how did you fix it please help
@timminator5553 жыл бұрын
@@movimientoenelespacio How did you fix it?
@johnwilkesbooth80003 жыл бұрын
@@timminator555 have you find the error ?
@Yxnder2 жыл бұрын
Welp, seems like Kotlin android extension was disabled later in 2020 and referencing activity xml elements to kt files is no longer possible :( Anyone have a way around this?
@syedsuhaibzia15584 жыл бұрын
I got an error at 5:17 it says scanner_view is unresolved reference what should i do please
@syedsuhaibzia15583 жыл бұрын
@Rafif Rabbani yup thank you that was the error. i solved it
@MrSlaaron503 жыл бұрын
totaly new to android studio, your tutorial works perfectly! Can we send this variable throught bluetooth to populate any text box in windows like a keyboard insert? simply ?
@dailyseedpodcast3 жыл бұрын
Love the the content, but can you help me out When I add the Code Scan View to Frame Layout it doesn't recognize it even after adding dependency. Thank you
@ghost_wasabi9 ай бұрын
Thanks for the tutorial. However, the flash functionality doesn't seem to work on mine... can you help?
@fernandogarciabarrera86993 жыл бұрын
Good video Does the flashlight work?
@Indently3 жыл бұрын
If your phone has a flash light, it will work.
@FabianFlorezColombia4 жыл бұрын
How can I... Scan code QR and Load this Code Qr (URL) into WebView... or External Explorer... ??? Can U helpme??
@farhan-momin9 ай бұрын
hi in 2024 im adding this same feature to the app for my project!
@eduardlipnitskiy65953 жыл бұрын
Thank You! It works well and fast. But only when my camera far from QR. Is it possible to adjust the distance?
@ZtowhyA3 жыл бұрын
wrong orientation for me. how do we resolved this?
@Noway213-h3i2 жыл бұрын
hey dude how can i fix the unsolved reference scannerview and tv_textview?
@gmiampec2 жыл бұрын
Have you got the answer? I am facing the same problem
@HeikoGenti962 жыл бұрын
same. do u fix?
@apoorvjain724 жыл бұрын
i tried making your code scanner in a fragment, can you help me find out why i am unable to scan in the fragment and also a way to make it working in a fragment
@yavuzaksahin96213 жыл бұрын
me to
@coderschannel42704 жыл бұрын
for me no errors but when i try running the apps no information appears on the screen. why?
@flon74004 жыл бұрын
thanks you for the tuto ! Why my cam is not working ? Instead of turn on my cam it takes the environment of the simulation ...
@nurulaulia4579Ай бұрын
can this be stored in the database??
@waltoncharles89723 жыл бұрын
Is he doing it in Kotlin or Java? sorry I am new to this and am learning and don't want to follow the instructions incorrectly
@dxxxlan3 жыл бұрын
He's using Kotlin
@waltoncharles89723 жыл бұрын
@@dxxxlan ty mate
4 жыл бұрын
Thanks bro, you're the best!
@Jberv3 жыл бұрын
I tried this library, just found it on github but one thing i noticed, it is slow to scan, sometimes it takes 2 to 3 mins, unlike integration from other libraries, anyways nice video!
@Loulilta Жыл бұрын
Can i ask you i have problem whan i add the scanner view
@sirhades3562 жыл бұрын
Can I use this on transferring activities when a QR code is scanned?
@daytonatecfarheen23333 жыл бұрын
Hi can u plz help. I keep seeing a black screen when I go back and start the app again. I'm failing to understand what's wrong. This usually happens with higher android version. Thanks!
@Indently3 жыл бұрын
Read your error messages in the console
@dare64374 жыл бұрын
How i relate activity_main.xml and MainActovity.kt files?
@nicolewhittaker90133 жыл бұрын
how did you do it can you share with me , thank you
@Indently3 жыл бұрын
Hello! I explain everything in the video. Have a nice day!
@ddlam22 жыл бұрын
I am working on the Android 10 API 29 project but there is no Activity_main.xml. Any idea would be appreciated.
@3dgiftz2 жыл бұрын
Whther this scanner needs internet??
@theuniversetraveller2 жыл бұрын
In the latest version of Android Studio textview.text = it.text comes back as an error, only expressions are allowed. I've tried copying the Kt code from Github DIrectly, but it uses Toast and .show actions that are not recognized as well. Total Newbie here. Any suggestions?
@Loulilta Жыл бұрын
It doesn't work with me in xml the scanner view any help ?
@BTAndroid2 жыл бұрын
Hey you.. Why my Android 8.1.0 Imin device, can't scan. please help me
@rhenestayo55914 жыл бұрын
Can you please help me with this error MainActivity.xml = Unresolved reference: scanner_viewer. I already declare scanner_viewer on activity_main.xml. But it doesnt appear . Thanks in advance.
@ponapple4 жыл бұрын
Add this to build.gradle under plugins id ‘kotlin-android-extensions’
@guyus54693 жыл бұрын
@@ponapple thanks mate!
@bobyschnackler69143 жыл бұрын
@@ponapple thank you kind sir
@timminator5553 жыл бұрын
@@ponapple It doesn'nt work. It also says Unsolved reference: tv_textView. And Variable expected in this line: tv_textView.text = it.text.
@airilsra3 жыл бұрын
@@timminator555 it works for me, though.
@ryanvalcorza33633 жыл бұрын
AAPT: error: not well-formed (invalid token).
@charliecliforddevilla78363 жыл бұрын
Why does my id "scanner_view" need to add local variable or parameter even though I declare it in the activity main
@sqrpro53183 жыл бұрын
did you solve the issue? please help me im stuck
@yyzuus3 жыл бұрын
If you're solved plz help me out.
@mattileazarelenquiblat3 жыл бұрын
What Language did you use?
@minhajisminhaj3 жыл бұрын
English 😐
@jamesbrianvillar82102 жыл бұрын
The Code scanner in activy_main I can't find it
@KhressieVlog4 жыл бұрын
nice video, can you help me fix this problem "Camera initialization error: failed to connect to camera service using android studio kotin language" that's the error when opening the camer of my virtual device
@kartikmalhotra35514 жыл бұрын
I am getting the same error, have you resolved it?
@inaayat41934 жыл бұрын
@@kartikmalhotra3551 me too, how can I?
@kartikmalhotra35514 жыл бұрын
@@inaayat4193 github code is incomplete watch the video and code, then it will work👍
@inaayat41934 жыл бұрын
@@kartikmalhotra3551 i succeeded, camera permissions should be enabled in settings
@ryanvalcorza33633 жыл бұрын
please help me on my error AAPT: error: not well-formed (invalid token).
@Indently3 жыл бұрын
invalid token
@phisitxayphommachan41663 жыл бұрын
how to setupPermissions function in java please help
@boswaki44 жыл бұрын
working good tutorial
@wiz83703 жыл бұрын
At 5:18 codeScanner = CodeScanner(context:this, scanner_view) I don't get scanner_view It shows it as an error This is my first ever android project, I could really use some help
@wiz83703 жыл бұрын
SOLUTION: In build.gradle(.app) Add another pluggin id 'kotlin-android-extentions' This should fix the issue
@charliecliforddevilla78363 жыл бұрын
@@wiz8370 doens't fix the issue, idk why. I already checked the id on design, still red same with tv_textView
@sqrpro53183 жыл бұрын
@@charliecliforddevilla7836 did you fix it? if yes i want to know how
@khanhsb15 Жыл бұрын
Thanks a lot !
@helakajayakody28534 жыл бұрын
Hello, can you teach us how to scan only specific type of qr codes like whats app do
@thiviyakannathazan3 жыл бұрын
sir, how to save the details?
@Indently3 жыл бұрын
Use local storage or cloud database
@thiviyakannathazan3 жыл бұрын
@@Indently if using firebase how to implement in the code sir. Pls help me
@Indently3 жыл бұрын
Create unique user id and insert data
@thiviyakannathazan3 жыл бұрын
@@Indently sir u have any related video? So its easy for me to refer
@gouravdadhich13323 жыл бұрын
osm brother thankyou so much
@williamtapeyim12262 жыл бұрын
Hello, I'm kinda new to mobile development...and I have a concern that I'd like someone to explain to me please. My concern is this: I sometimes use applications capable of solving mathematical equations by simply filming on a notebook or a support (I am not interested in the mathematical part 😅) I would just like to know how and with which instruction (C#, .net ...I don't really know) we retrieve the equation written on the notebook through the camera... And I would also like to know if it's possible to create an application that communicates with offline software (like bluetooth...) thank you!
@ashishgautam28424 жыл бұрын
great work
@jingquankueh5643 жыл бұрын
What if I want to go to a new Activity after scanning a barcode (passing the value along with it) ? Help is appreciated.
@Indently3 жыл бұрын
It is the same process as sending a value to any new activity
@StefanSoyka3 жыл бұрын
Oddly, I had to add kotlin-android-extensions before I was able to import or reference any view from the code. Oddly, because during it tells me to remove it and use the kotlin-parcelize plugin (Studio 4.2.1)
@giannhsroussas53243 жыл бұрын
If i scan a barcode an item has then will it show me its price??
@Indently3 жыл бұрын
If you program it to do so.
@jaysonverzon1723 жыл бұрын
do u have for java version?
@Indently3 жыл бұрын
yes
@jaysonverzon1723 жыл бұрын
@@Indently can I get a copy?
@grampygamer85843 жыл бұрын
Trying the Kotlin route in Android Studio I get Unresolved reference:int any ideas?
@grampygamer85843 жыл бұрын
Resolved
@wiz83703 жыл бұрын
I have the same error What's the solution for this?
@trevorPhillips2843 жыл бұрын
how can someone create dependency like that? I mean how all this works in the background?
@Indently3 жыл бұрын
Hi Shobhit, unfortunately I can't answer that. You would have to do a bit of research on Google for that.
@akagrawal853 жыл бұрын
flash light not working...why?
@robinb.9053 жыл бұрын
Doesn't work anymore. I've got A LOT of errors, compilation fails, references to the textView and scannerView are missing... Android Studio is really a PAIN IN THE A** and the WORST IDE ever made
@ApryMadonaSihaloho3 жыл бұрын
How i can get custom barcode?
@Indently3 жыл бұрын
Type it in your search engine
@arma30532 жыл бұрын
hi thanks for the video, i could use some help. The code scanner line is not poping up nomater waht i do( this is literally my first time using Android Studio). Can anyone help me?
@54M1WUL3 жыл бұрын
duz it wrk with barcodes in supermarkets?
@Indently3 жыл бұрын
maybe, but maybe not
@54M1WUL3 жыл бұрын
@@Indently why not?
@Indently3 жыл бұрын
@@54M1WUL No reason, or maybe there are many
@54M1WUL3 жыл бұрын
@@Indently i wanted to make an app wher it can scan the barcodes of supernarket items, to see if the user has the correct budget
@Indently3 жыл бұрын
@@54M1WUL have you tried scanning a barcode?
@loisejaymhoralfarero77923 жыл бұрын
i cant view the QR code scanner PLSS help me
@mustafaammar5513 жыл бұрын
Thank you bro
@Indently3 жыл бұрын
np bro
@andrefbillette27743 жыл бұрын
Great video
@JayaramGS3 жыл бұрын
How to clear the bug... java.lang.RuntimeException: Failed to connect the camera service
@Indently3 жыл бұрын
With lots of love and research on Google
@JayaramGS3 жыл бұрын
Bug fixed..❤️
@ChrisChanSajelan3 жыл бұрын
How did you fixed it?
@ghaithmuhammed2794 жыл бұрын
Is there code for scaning values like number
@Indently4 жыл бұрын
probably
@ghaithmuhammed2794 жыл бұрын
Thank you And recylerview image with text firebase
@EasyTrickSG4 жыл бұрын
this scanner can browse web link///??
@Indently4 жыл бұрын
sure
@lzzpigeonclockingsystem79914 жыл бұрын
Java?
@Indently4 жыл бұрын
Java is a class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible. It is a general-purpose programming language intended to let application developers write once, run anywhere (WORA),[17] meaning that compiled Java code can run on all platforms that support Java without the need for recompilation.
@lzzpigeonclockingsystem79914 жыл бұрын
yeh i mean. i need tutorial for java. thanks.
@Indently4 жыл бұрын
W3school is a great place to learn Java: www.w3schools.com/java/
@lzzpigeonclockingsystem79914 жыл бұрын
tutorial on java, how to implement this code scanner?
@Indently4 жыл бұрын
@@lzzpigeonclockingsystem7991 Ah, you should have said so earlier! Just learn Kotlin.
@N000043 жыл бұрын
Great job
@inzealinfotech98303 жыл бұрын
flash light not working
@LabGecko Жыл бұрын
Shame it uses a 3rd party code scanner instead of something like Google's. Yes, it looks like it works, but what else is that library importing or doing in the background? I don't have time to research it. As for the video, great job on the tutorial.
@farhan-momin9 ай бұрын
its opensource
@adolphweissman59733 жыл бұрын
is there a java for this one? if there is, can someone help me? im not familiar with kotlin yet
@leandrosistemavs10434 жыл бұрын
excelent!!
@anesboubaker30882 жыл бұрын
THANK YOU BRO
@GSS-n4u2 жыл бұрын
java tutorial?
@Indently2 жыл бұрын
No, I recommend learning Kotlin
@farhan-momin9 ай бұрын
hi in 2024 im making this project in java with help of chatgpt to trancode kotlin in this tutorial to java
@sohamahmoud13244 жыл бұрын
this code make the app scan any qr code how can i make the app scan uniqe qr code ?!
@Indently4 жыл бұрын
Make the content of the QR code a secret code, and add an if/when statement that uses that code to display whatever you want to display
@johnwilkesbooth80003 жыл бұрын
Why can't we make payment ?
@Indently3 жыл бұрын
Payment to who?
@giovannidenti46073 жыл бұрын
Salve, bel video. Peccato che dia gli errori che molti utenti ti hanno chiesto di spioegare. Ma non so perche non hai risposto neppure a un' utente. Questo errore lo da anche a me "Unresolved reference: scanner_view :21) . Ho ricontrollato piu volte l' id e ho anche provato a cambiarlo sia nell activity_main che nel MainActivity, ma non cambia niente. L' errore rimane. Sarebbe bello sentire come si puo risolvere. Grazie e ancora complimenti
@Indently3 жыл бұрын
Ciao Giovanni! Scusa che non posso rispondere a tutte le domande... questo e' solo un hobby e devo lavorare per fare la mia vita qua a Copenaghen. Riguardando tuo errore, devi ricercare Kotlin Synthetics Deprecation su Google, perché adesso non possiamo più solo scrivere il "reference" senza Kotlin Synthetics, che e' stato deprecated. Grazie e buona giornata!
@giovannidenti46073 жыл бұрын
@@Indently Ciao e grazie per avermi risposto. Io ho provato piu volte a implementare il tuo codice ma non riesco a risolvere l' errore di cui ti ho parlato. Visto che tu hai implementato il codice potresti dirmi come risolverlo quando hai 2 minuti di tempo? Grazie ancora 👍💪
@giovannidenti46073 жыл бұрын
@@Indently Scusa non avevo letto tutto il tuo messaggio. Grazie del suggerimento e buona giornata 😀
@mihaelisaev3 жыл бұрын
So android developers can't scan QR/barcodes easily in two lines of code without any libs? Can't find any tutorial which doesn't use some shitty libraries.
@Indently3 жыл бұрын
I hope you understand the complexity involved into breaking down images into to bytes, and converting them into some sort of format that our phone can understand. This library saves us a lot of time.
@mihaelisaev3 жыл бұрын
@@Indently yup, I'm just from the swift world where everything is 100x times easier.
@mihaelisaev3 жыл бұрын
@@Indently ok, I implemented it with CameraX+ZXing and JetPack Compose.
@hk-four-sixteen Жыл бұрын
The best tutorial that deserve more likes. +1 subscribe for a Very useful tutorial 😍
@ahmetaykilic81193 жыл бұрын
Thanks a lot, it worked. This application uses the phone's back camera. But I have to use a selfie (front) camera. Is it possible? How can I do? Please, Help me...
@ahmetaykilic81193 жыл бұрын
OK, I solved :) I added this code; integrator.addExtra("SCAN_MODE", "QR_CODE_MODE"); integrator.addExtra("SCAN_CAMERA_ID", 1); // front (selfie) camera integrator.addExtra("SCAN_CAMERA_ID", 0); // back camera
@rexang9803 жыл бұрын
@@ahmetaykilic8119 Where did you add the code?
@DamayitaDas2 жыл бұрын
Спасибо, только твой код помог 🙂 Но фонарик всё равно не работает