How to Make a QR Code Scanner in Jetpack Compose - Android Studio Tutorial

  Рет қаралды 40,203

Philipp Lackner

Philipp Lackner

Күн бұрын

Пікірлер: 97
@galanteria01
@galanteria01 3 жыл бұрын
Best tutor for android out now. You just fulfilled my wish to understand camera api's for compose. Thanks alot.
@CoderzF1
@CoderzF1 3 жыл бұрын
Someone was just asking about you the other day in Florians live stream. You are ALIVE!!!!!!! Good luck on the new freelance job.
@PhilippLackner
@PhilippLackner 3 жыл бұрын
I didn't go anywhere :D Thanks!
@mihirpaldhikar
@mihirpaldhikar 3 жыл бұрын
What a timing man! I was just gonna search this topic with jetpack Compose and here Philipp uploads it! 😆😂
@maskedredstonerproz
@maskedredstonerproz 3 жыл бұрын
superpowers man, superpowers
@josephofem5448
@josephofem5448 2 жыл бұрын
Hello Philip. Thanks for the amazing work you are doing on this space. This video could not have come at a better time. However, I am kinda stuck on how to run and stop the scanner on button events and also run the scanner for a given period of time before throwing a not found error. Once again, thanks a great deal
@VikramsinhChampavat
@VikramsinhChampavat 3 жыл бұрын
Wowww. Yesterday I added this topic in my todo list for R&D for my ongoing project and today just got notified for this video. 😍😍 You're real Santa Claus for me 🎅🎅
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Most welcome 😊
@VikramsinhChampavat
@VikramsinhChampavat 3 жыл бұрын
@@PhilippLackner Hi sir, I just cloned the project from Git repo from the link given in description. Don't know why but it's not scanning any QR code even if I haven't changed a single line of whole the project Got solution after so much trials: Removing setTargetResolution line worked for me!!
@jesumolea
@jesumolea 3 жыл бұрын
@@VikramsinhChampavat I had the same problem, now it's working! Thanks 😄
@azizbekrasulmetov9293
@azizbekrasulmetov9293 3 жыл бұрын
@@VikramsinhChampavat Wow, thanks I was wondering why it is not working) It was throwing NotFoundException.
@raheemadamboev
@raheemadamboev 2 жыл бұрын
same, but why tho?
@kaychi9369
@kaychi9369 3 жыл бұрын
Great! KZbin is lacking of Android camera content
@yogeshmishra6025
@yogeshmishra6025 Жыл бұрын
Hi Phillip, ImageAnalysys.Builder().setTargetResolution has been deprecated. Can you please explain how to use ResolutionSelector with ResolutionStrategy
@muhamadabdulaziz2210
@muhamadabdulaziz2210 2 жыл бұрын
hello philipp, i have a problem when i scan barcode code_128 that doesnt give me the result, i also input BarcodeFormat.CODE_128 in DecodeHintType, what should i do?
@PhilippLackner
@PhilippLackner 3 жыл бұрын
First
@AtulSharma-jr1mn
@AtulSharma-jr1mn 3 жыл бұрын
After upload you are just revising your code as a viewer 😂😂
@kesavguru415
@kesavguru415 3 жыл бұрын
😂😂
@stonedcodingtom9097
@stonedcodingtom9097 Жыл бұрын
🗿🗿🗿
3 жыл бұрын
It has been very didactic, congrats Philipp.
@vildanvinanda5919
@vildanvinanda5919 2 жыл бұрын
thank you very much for the video philip, can you make us a video how to enter data in the qr code and the qr code is stored in firebase and when scanned it will display the stored data
@tic-tech-toe5394
@tic-tech-toe5394 2 жыл бұрын
I wanted to navigate to another screen through navigation controller. it goes to that screen but the functionality doesn't work as expected on that screen. and the design is also not properly shown. Can you make a tutorial about navigating to another screen after successfully scanning the qr code?
@terencejumba1939
@terencejumba1939 3 жыл бұрын
nice tutorial man, this is a life saver👊🏾
@vengateshm2122
@vengateshm2122 3 жыл бұрын
Very useful. It is called as zebra crossing library.
@AtulSharma-jr1mn
@AtulSharma-jr1mn 3 жыл бұрын
Others: I am first, I am first Philipp: Don't underestimate the creator 😂
@rahul_spawar
@rahul_spawar Жыл бұрын
Heyy Philip, I'm coming back here cz I thought I break my code but for some reason this solution is not working on Pixel 6A, I installed the same repo from github, It's working on emulator, on my OnePlus but not on Pixel, I tried updating zxing library version and other solution but nothing is working. Can you please help.
@ryszardmachmudow9175
@ryszardmachmudow9175 2 жыл бұрын
Unfortunately it does not work. I even imported your project, did not any changes in the code and all the time have the following error: W/System.err: com.google.zxing.NotFoundException. Do you know how to bind to bottom sheet lifecycle?
@priyanshuborole8228
@priyanshuborole8228 8 ай бұрын
Did you found any solution?
@marcopierucci9333
@marcopierucci9333 2 жыл бұрын
This is great, but could you share a tip or where to look for rotation PlanarYUVLuminanceSource or BinaryBitmap? So it can work on portrait as well
@SobhanEsmaeili
@SobhanEsmaeili Жыл бұрын
i have the same problem did you find anything? if you find anything, please let me know
@bboydarknesz
@bboydarknesz 3 жыл бұрын
so confuse actually, rarely playing with this stuff. but thank you for documented this!
@akashkroy
@akashkroy 3 жыл бұрын
Getting this error: Cannot access class 'androidx.compose.ui.Alignment.Horizontal'. Check your module classpath for missing or conflicting dependencies. Not able to find a solution.
@tiagooorocha
@tiagooorocha 9 ай бұрын
for barcode is the same? instead of qrcode
@brgame8
@brgame8 3 жыл бұрын
Great video here,. I actualy Search how to build qr code scanner a long ago,. And endup with mlkit + camera x,. With kotlin xml,. Now the problem is here,. Which is better using zink lib or MLKit? And can you make video how to build qr code scanner using MLkit with compose? Anway,. Big thanks for your video this time, 😁
@lutfiikbalmajid
@lutfiikbalmajid 2 жыл бұрын
BoofCV the best one, try it
@lutfiikbalmajid
@lutfiikbalmajid 2 жыл бұрын
I am try both, for performance usage boofCV are best between ZXing and MLkit
@brgame8
@brgame8 2 жыл бұрын
@@lutfiikbalmajid thanks for the infomation,. is boofcv support compose right now?
@lutfiikbalmajid
@lutfiikbalmajid 2 жыл бұрын
@@brgame8 i am now learninh using Jetpack Compose, and probably will trying to work with BoofCV using composr. Perhaps its work. My concern, for smartphone under 2019, so laggy, because both MLkit & boofcv is working threads, depending on RAM & CPU
@pejmanazad5852
@pejmanazad5852 2 жыл бұрын
@@lutfiikbalmajid how much increase the apk size?
@fahimafridi4403
@fahimafridi4403 8 ай бұрын
Anyone can help: A am stuck in val preview = preview.Builder().build Here Builder() is red coloured, it says add library 'gradle:junit:junit:4.13.2' to classpath I did, but wont proceed. Plzz help anyone
@bayudwisaputra9
@bayudwisaputra9 3 жыл бұрын
is it possible to scann qr code from image file?
@ChrisAthanas
@ChrisAthanas 2 жыл бұрын
Gotta limit the camera resolution by adding this to the AndroidView in the MainActivity: .setTargetResolution( Size( 640, // previewView.width, 480, // previewView.height ) )
@tkm4079
@tkm4079 2 жыл бұрын
Many thx
@maryshaghaghi7257
@maryshaghaghi7257 11 ай бұрын
thanks a lot 😃
@damianviltres2202
@damianviltres2202 2 жыл бұрын
I'm trying this project in a device android 10 and It doesn't work. I got this error ( Access denied finding property "persist.vendor.camera.mi.cameraid"). I didn't find any solution yet to fix this issue. Thanks
@Volodymyr485
@Volodymyr485 Жыл бұрын
Hi Philip! We don't need a list of supported image formats and the if block because the image always has the YUV_420_888 format ("The image provided has format YUV_420_888." - from documentation)
@harisai3580
@harisai3580 2 жыл бұрын
M app keeps crashing, its not opening. I did whatever you did bro, Will there be any problem from dependencies side
@ubersticks
@ubersticks 3 жыл бұрын
Thanks Philipp this was interesting and helpful.
@PhilippLackner
@PhilippLackner 3 жыл бұрын
Glad you enjoyed it
@ABCXYZ-c4g
@ABCXYZ-c4g Жыл бұрын
Great Video but somehow it's giving some integer code(e.g. 10172681) while scanning QR Code in Lenovo Tab M10 Plus 3rd Gen (TB125FU). Any solutions?
@sauravsharma7802
@sauravsharma7802 3 жыл бұрын
Hey can you make any type of app full development from login to end in kotlin
@khurramshahzad2308
@khurramshahzad2308 2 жыл бұрын
How to turn on the flash light in this tutorial?
@kigaming1813
@kigaming1813 Жыл бұрын
Hi bro, I didn't think to combine your code with viewmodel, is that possible? and is your code in accordance with the rules? sorry I'm a beginner here
@ASahutheMakeshifter
@ASahutheMakeshifter 2 жыл бұрын
It does not scan>> i followed the same steps and everything. can anyone help.
@dariavasiliev525
@dariavasiliev525 2 жыл бұрын
Do you get any Errors? Had a Problem with some Devices, getting a "NotFoundException" (OnePlus Android v11/12 worked fine, but Xiaomi A v10 and Pixel 6 v13 didn´t) Tried the Solution from @Jari R (Down below in the last comment - Removing the TargetResolution) and it finally works now :)
@kikkichen1541
@kikkichen1541 2 жыл бұрын
@@dariavasiliev525 Great, it also solved my NotFoundException problem, although I don't know what is behind it.
@santiagoorozcoguayara828
@santiagoorozcoguayara828 Жыл бұрын
Thanks bro@@dariavasiliev525
@johndominicjasmin
@johndominicjasmin 3 жыл бұрын
thank you so much
@hoangson1207
@hoangson1207 3 жыл бұрын
can you publish 1 video tutorial about KMM?
@jjongim3956
@jjongim3956 3 жыл бұрын
HI ! Thanks a lot for your help^^ Do you have any plans for nfc hce video?
@rohanpatil8417
@rohanpatil8417 3 жыл бұрын
25:45 It says "Java Sucks"😂
@ataulhaque1947
@ataulhaque1947 2 жыл бұрын
Not Working
@diorgenesorlando4285
@diorgenesorlando4285 Жыл бұрын
your reppo havn't the full code
@StormChild
@StormChild 2 ай бұрын
It has, but not in the 'Master' branch, but under 'App'.
@austincolburn4908
@austincolburn4908 3 жыл бұрын
What do you feel is the best place to start learning Android development?
@PhilippLackner
@PhilippLackner 3 жыл бұрын
My channel
@dansonmwangi5660
@dansonmwangi5660 2 жыл бұрын
@@PhilippLackner I couldn't agree more.
@adamfatyga7977
@adamfatyga7977 Жыл бұрын
It reads only QR? How about barcode?
@santiagoorozcoguayara828
@santiagoorozcoguayara828 Жыл бұрын
You can send any formats that support zxing like public enum BarcodeFormat { /** Aztec 2D barcode format. */ AZTEC, /** CODABAR 1D format. */ CODABAR, /** Code 39 1D format. */ CODE_39,
@Ah95ed
@Ah95ed 2 жыл бұрын
How to read Barcode
@dairondanilo6067
@dairondanilo6067 Жыл бұрын
Do it on kotlin multiplataform please!!!!
@LazyTram911
@LazyTram911 2 жыл бұрын
It's awesome, but not working now. Maybe some problems with dependency(
@nguyenucthinh9606
@nguyenucthinh9606 2 жыл бұрын
How to detect 4 points of qr code in screen?
@sijanneupane
@sijanneupane Жыл бұрын
done and dusted!
@abhirrup93patra
@abhirrup93patra Жыл бұрын
can u tell how to develop an ocr scanner for passport scanning?
@karthikramachandran5602
@karthikramachandran5602 3 жыл бұрын
Why did you not use ML kit sdk it also offers scan barcode/qr code
@PhilippLackner
@PhilippLackner 3 жыл бұрын
why would you use something that costs if you can get the same for free?
@karthikramachandran5602
@karthikramachandran5602 3 жыл бұрын
ML kit sdk is free.Firebase mlkit is no longer there which used to cost.
@samwise1688
@samwise1688 3 жыл бұрын
Lol. In my country it is demanded to enter public places showing your qr code which confirms that you did vaccination(with sputnik v ofc). Who are you working for lol
@azizbekrasulmetov9293
@azizbekrasulmetov9293 3 жыл бұрын
Its throwing exception
@kesavguru415
@kesavguru415 3 жыл бұрын
Make screen recorder app in kotlin 😄
@shahabsaalami4574
@shahabsaalami4574 Жыл бұрын
There aret too many advertisment when whatchin this vido :|
@PhilippLackner
@PhilippLackner Жыл бұрын
Luckily you can always choose whether to watch or not to watch a free video 😄
@shahabsaalami4574
@shahabsaalami4574 Жыл бұрын
@@PhilippLackner unfortunately you are awesome 😁, I have to watch your videos
@StormChild
@StormChild 2 ай бұрын
@@shahabsaalami4574 KZbin Premium is the way to go to support the creators and being free from those pesky ads! ;))
@Ilamarea
@Ilamarea 2 жыл бұрын
I was getting a 'missing method' crash with v 1.2.0-alpha04 at 'ProcessCameraProvider.getInstance(context)' Stick with 1.1.0 Java sucks
@hououinkyouma7750
@hououinkyouma7750 2 жыл бұрын
it not working on me.... W/System.err: com.google.zxing.NotFoundException
@krlos9925
@krlos9925 2 жыл бұрын
Same error, could you solve it?
@JorgeSotoRamos
@JorgeSotoRamos Жыл бұрын
@Jari R This really works I hope it doesn't fail or that it solves one more way it was soon 👍👍
@alexandrejacinto886
@alexandrejacinto886 Жыл бұрын
The solution from Jarir works!
@nurhidayatdroid8892
@nurhidayatdroid8892 Жыл бұрын
@jarir8547 Thanks bro
@ducthinhtrai
@ducthinhtrai Жыл бұрын
@@alexandrejacinto886 What is the solution? Looks like some Jarir guy's comment was deleted. And I'm having the same issue
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
How To Create A QR Code Scanner/Reader In Xcode 8 (Swift 3)
22:56
The Swift Guy
Рет қаралды 55 М.
How to Support All Screen Sizes in Jetpack Compose
11:57
Philipp Lackner
Рет қаралды 31 М.
Transformers (how LLMs work) explained visually | DL5
27:14
3Blue1Brown
Рет қаралды 4,6 МЛН
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 168 М.
Full Guide to Jetpack Compose Effect Handlers
24:56
Philipp Lackner
Рет қаралды 101 М.
I've Used Jetpack Compose For 4 Years - Here's the Good and the Bad
16:12