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

  Рет қаралды 37,689

Philipp Lackner

Philipp Lackner

Күн бұрын

Пікірлер: 94
@galanteria01
@galanteria01 2 жыл бұрын
Best tutor for android out now. You just fulfilled my wish to understand camera api's for compose. Thanks alot.
@mihirpaldhikar
@mihirpaldhikar 2 жыл бұрын
What a timing man! I was just gonna search this topic with jetpack Compose and here Philipp uploads it! 😆😂
@maskedredstonerproz
@maskedredstonerproz 2 жыл бұрын
superpowers man, superpowers
@CoderzF1
@CoderzF1 2 жыл бұрын
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 2 жыл бұрын
I didn't go anywhere :D Thanks!
@VikramsinhChampavat
@VikramsinhChampavat 2 жыл бұрын
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 2 жыл бұрын
Most welcome 😊
@VikramsinhChampavat
@VikramsinhChampavat 2 жыл бұрын
@@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 2 жыл бұрын
@@VikramsinhChampavat I had the same problem, now it's working! Thanks 😄
@azizbekrasulmetov9293
@azizbekrasulmetov9293 2 жыл бұрын
@@VikramsinhChampavat Wow, thanks I was wondering why it is not working) It was throwing NotFoundException.
@raheemadamboev
@raheemadamboev 2 жыл бұрын
same, but why tho?
@PhilippLackner
@PhilippLackner 2 жыл бұрын
First
@AtulSharma-jr1mn
@AtulSharma-jr1mn 2 жыл бұрын
After upload you are just revising your code as a viewer 😂😂
@kesavguru415
@kesavguru415 2 жыл бұрын
😂😂
@stonedcodingtom9097
@stonedcodingtom9097 Жыл бұрын
🗿🗿🗿
@vengateshm2122
@vengateshm2122 2 жыл бұрын
Very useful. It is called as zebra crossing library.
@yogeshmishra6025
@yogeshmishra6025 Жыл бұрын
Hi Phillip, ImageAnalysys.Builder().setTargetResolution has been deprecated. Can you please explain how to use ResolutionSelector with ResolutionStrategy
@bboydarknesz
@bboydarknesz 2 жыл бұрын
so confuse actually, rarely playing with this stuff. but thank you for documented this!
@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
@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
@AtulSharma-jr1mn
@AtulSharma-jr1mn 2 жыл бұрын
Others: I am first, I am first Philipp: Don't underestimate the creator 😂
@brgame8
@brgame8 2 жыл бұрын
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?
@Volodymyr485
@Volodymyr485 11 ай бұрын
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)
@tiagooorocha
@tiagooorocha 5 ай бұрын
for barcode is the same? instead of qrcode
@fahimafridi4403
@fahimafridi4403 4 ай бұрын
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
@akashkroy
@akashkroy 2 жыл бұрын
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.
@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
@harisai3580
@harisai3580 2 жыл бұрын
M app keeps crashing, its not opening. I did whatever you did bro, Will there be any problem from dependencies side
@ataulhaque1947
@ataulhaque1947 2 жыл бұрын
Not Working
@bayudwisaputra9
@bayudwisaputra9 2 жыл бұрын
is it possible to scann qr code from image file?
@khurramshahzad2308
@khurramshahzad2308 2 жыл бұрын
How to turn on the flash light in this tutorial?
@austincolburn4908
@austincolburn4908 2 жыл бұрын
What do you feel is the best place to start learning Android development?
@PhilippLackner
@PhilippLackner 2 жыл бұрын
My channel
@dansonmwangi5660
@dansonmwangi5660 2 жыл бұрын
@@PhilippLackner I couldn't agree more.
@diorgenesorlando4285
@diorgenesorlando4285 Жыл бұрын
your reppo havn't the full code
@LazyTram911
@LazyTram911 2 жыл бұрын
It's awesome, but not working now. Maybe some problems with dependency(
@dairondanilo6067
@dairondanilo6067 9 ай бұрын
Do it on kotlin multiplataform please!!!!
@jjongim3956
@jjongim3956 2 жыл бұрын
HI ! Thanks a lot for your help^^ Do you have any plans for nfc hce video?
@nguyenucthinh9606
@nguyenucthinh9606 2 жыл бұрын
How to detect 4 points of qr code in screen?
@sijanneupane
@sijanneupane Жыл бұрын
done and dusted!
@ahmedshakr7802
@ahmedshakr7802 Жыл бұрын
How to read Barcode
@azizbekrasulmetov9293
@azizbekrasulmetov9293 2 жыл бұрын
Its throwing exception
@karthikramachandran5602
@karthikramachandran5602 2 жыл бұрын
Why did you not use ML kit sdk it also offers scan barcode/qr code
@PhilippLackner
@PhilippLackner 2 жыл бұрын
why would you use something that costs if you can get the same for free?
@karthikramachandran5602
@karthikramachandran5602 2 жыл бұрын
ML kit sdk is free.Firebase mlkit is no longer there which used to cost.
@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 11 ай бұрын
The solution from Jarir works!
@nurhidayatdroid8892
@nurhidayatdroid8892 10 ай бұрын
@jarir8547 Thanks bro
@ducthinhtrai
@ducthinhtrai 10 ай бұрын
@@alexandrejacinto886 What is the solution? Looks like some Jarir guy's comment was deleted. And I'm having the same issue
@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?
@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 7 ай бұрын
thanks a lot 😃
@rohanpatil8417
@rohanpatil8417 2 жыл бұрын
25:45 It says "Java Sucks"😂
@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 4 ай бұрын
Did you found any solution?
@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.
@tic-tech-toe5394
@tic-tech-toe5394 Жыл бұрын
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?
@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
@ASahutheMakeshifter
@ASahutheMakeshifter Жыл бұрын
It does not scan>> i followed the same steps and everything. can anyone help.
@dariavasiliev525
@dariavasiliev525 Жыл бұрын
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 Жыл бұрын
@@dariavasiliev525 Great, it also solved my NotFoundException problem, although I don't know what is behind it.
@santiagoorozcoguayara828
@santiagoorozcoguayara828 11 ай бұрын
Thanks bro@@dariavasiliev525
2 жыл бұрын
It has been very didactic, congrats Philipp.
@johndominicjasmin
@johndominicjasmin 2 жыл бұрын
thank you so much
@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?
@samwise1688
@samwise1688 2 жыл бұрын
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
@terencejumba1939
@terencejumba1939 2 жыл бұрын
nice tutorial man, this is a life saver👊🏾
@hoangson1207
@hoangson1207 2 жыл бұрын
can you publish 1 video tutorial about KMM?
@sauravsharma7802
@sauravsharma7802 2 жыл бұрын
Hey can you make any type of app full development from login to end in kotlin
@kaychi9369
@kaychi9369 2 жыл бұрын
Great! KZbin is lacking of Android camera content
@adamfatyga7977
@adamfatyga7977 11 ай бұрын
It reads only QR? How about barcode?
@santiagoorozcoguayara828
@santiagoorozcoguayara828 11 ай бұрын
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,
@kesavguru415
@kesavguru415 2 жыл бұрын
Make screen recorder app in kotlin 😄
@ubersticks
@ubersticks 2 жыл бұрын
Thanks Philipp this was interesting and helpful.
@PhilippLackner
@PhilippLackner 2 жыл бұрын
Glad you enjoyed it
@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
@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
@abhirrup93patra
@abhirrup93patra 9 ай бұрын
can u tell how to develop an ocr scanner for passport scanning?
@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
The ONLY Correct Way to Load Initial Data In Your Android App?
12:27
Philipp Lackner
Рет қаралды 25 М.
escape in roblox in real life
00:13
Kan Andrey
Рет қаралды 87 МЛН
Spongebob ate Michael Jackson 😱 #meme #spongebob #gmod
00:14
Mr. LoLo
Рет қаралды 9 МЛН
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 8 МЛН
6 Design Patterns Every Android Developer Must Know
14:16
Philipp Lackner
Рет қаралды 81 М.
How to Build a Calculator with Jetpack Compose - Android Studio Tutorial
43:24
How I build Apps that PRINT ($30k/month Micro SAAS)
22:51
Steven Cravotta
Рет қаралды 334 М.
The ULTIMATE Guide to Sharing Data Between Screens in Jetpack Compose
24:08
Full Guide to Jetpack Compose Effect Handlers
24:56
Philipp Lackner
Рет қаралды 94 М.
Most overpowered way to build mobile apps?
8:33
Beyond Fireship
Рет қаралды 805 М.
I built the same app 10 times // Which JS Framework is best?
21:58
Fireship
Рет қаралды 2,5 МЛН
How to Do 90% of What Plugins Do (With Just Vim)
1:14:03
thoughtbot
Рет қаралды 897 М.