How to create your own QR Code and Barcode scanner reader Android App? - complete source code

  Рет қаралды 35,986

Programmer World

Programmer World

Күн бұрын

Пікірлер: 72
@kennethjones2849
@kennethjones2849 3 жыл бұрын
Thanks--I am trying to scan my stupid digital Covid vaccination BS for work and my QR code reader is so loaded with ads--I Told myself 5 minutes ago I was going to program my own QR reader so I don't have to see an APP while doing it--And this is what I am going to use. Thanks again!
@md.tasnimulhasan493
@md.tasnimulhasan493 4 жыл бұрын
You are going to get a huge watch time from me because I'm going to watch all of your videos
@kavyagowda1097
@kavyagowda1097 3 жыл бұрын
You can build a mobile app module where in we can audit all two wheelers (Scan the parking zone barcode and scan all the vehicles in the parking lot). The final output should be a csv file. The format can be date/time, vehicle number, parking lot number, sir please give me solution for this as soon as possible
@carmengarcespurizaga6042
@carmengarcespurizaga6042 2 жыл бұрын
Hi: I am really new in this. I did the scanner barcode, I will test it. I only want to ask you if I can use this app with excel for doing inventory. Thanks in advance.
@ProgrammerWorld
@ProgrammerWorld 2 жыл бұрын
Yes, it is definitely possible. Just to help, below page can be referred for Excel file creation from your App: programmerworld.co/android/how-to-create-an-excel-file-from-your-android-app/ For reference, the complete source code shown in this tutorial is also shared in the below link: programmerworld.co/android/how-to-create-your-own-qr-code-and-barcode-scanner-reader-android-app-complete-source-code/ Cheers Programmer World programmerworld.co -
@leopoiato
@leopoiato 4 жыл бұрын
This is a nice tutorial, and completely functional, my real congrats to your work and knowledge. Thanks
@ayushrockzzz
@ayushrockzzz 4 жыл бұрын
love your videos sir
@HG-os3dy
@HG-os3dy 3 жыл бұрын
Can you please advise how to build and integrate text (key words), QR code, and bar code scanning in my App so that I can get information from labels of products and packaging? The information obtained would be checked for relevance against my own database. I need to make this App for both iOS and Android phones and mobile devices. Thanks.
@charliecliforddevilla7836
@charliecliforddevilla7836 3 жыл бұрын
Hello, do you have a video of storing the scanned data to Excel or spreadsheet? Thanks.
@ProgrammerWorld
@ProgrammerWorld 3 жыл бұрын
Below video may help. Please refer: programmerworld.co/android/how-to-create-an-excel-file-from-your-android-app/ Cheers Programmer World programmerworld.co -
@wistonlawsons4443
@wistonlawsons4443 3 жыл бұрын
Thanks bruh
@rohanthorat4282
@rohanthorat4282 3 жыл бұрын
You are the best. Thankyou Very much. Great savior for me
@kavyagowda1097
@kavyagowda1097 3 жыл бұрын
You can build a mobile app module where in we can audit all two wheelers (Scan the parking zone barcode and scan all the vehicles in the parking lot). The final output should be a csv file. The format can be date/time, vehicle number, parking lot number, sir give me solution for this
@ProgrammerWorld
@ProgrammerWorld 3 жыл бұрын
I think along with this App to create your barcode scanner, you can use the below for creating a CSV/ excel file: programmerworld.co/android/how-to-create-an-excel-file-from-your-android-app/ I hope the above helps. Cheers Programmer World programmerworld.co -
@maktizi4154
@maktizi4154 4 жыл бұрын
hi, can you tell me please how to make so that the scanned text can be copied? and when i scan a QR code with a link, it is not clickable. thanks for your help in adavance.
4 жыл бұрын
hello, thanks for the code !! but how to put the scanner in a portrait mode, its automatic on landscape mode, any tips ?
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
You have to create a custom class and set that class in the intentIntegrator using the below command: intentIntegrator.setCaptureActivity(YourClass.class); In the class, you have to override the DecoratedBarcodeView method as shown below: @Override protected DecoratedBarcodeView initializeContent() { setContentView(R.layout.Your_Cutsom_Layout); return (DecoratedBarcodeView)findViewById(R.id.zxing_barcode_scanner); } Good Luck Programmer World programmerworld.co -
@lukasgreen92
@lukasgreen92 4 жыл бұрын
@@ProgrammerWorld Hello sir, sorry I didn't really understand. Could you please explain a bit more about how to do this? Thank you very much in advance! :)
@jayallepangilinan1014
@jayallepangilinan1014 3 жыл бұрын
Hello can you do an app which in Bar Code Scanner with Database which when you scan the barcode of the item it will automatically be read as ready to ship item. Thank you!
@ProgrammerWorld
@ProgrammerWorld 3 жыл бұрын
There are ample videos on my channel on interaction with database, such as SQLite, Firebase, and MS SQL. We can use these concepts along with the bar code scanner to track the shipment of the order. Cheers Programmer World programmerworld.co/ -
@kanagarajpazhani2909
@kanagarajpazhani2909 3 жыл бұрын
support android sdk version 28 and minSdk version 23?
@kintanumari8919
@kintanumari8919 4 жыл бұрын
How about array data type? Because i using array data type and i have many problem to show data, if i scan using another device
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
I think for array data type, you will have to convert them into a single string with some demarcation symbol (special character) in between. And then you can use that special character on the reader side as delimiter and convert the scanned text back to array based on the delimiter. Other option is to create multiple QR Code, one for each array data. But I think this is not a feasible option in your workflow. Then in that case try the 1st solution. Good Luck Programmer World programmerworld.co -
@sampathdissanayakamms
@sampathdissanayakamms 4 жыл бұрын
Thanks
@learnwitharslan1049
@learnwitharslan1049 4 жыл бұрын
For those who are using this library in fragment: This might help you. copy below code and past inside 10:21 ScanButton() method ******************************************************************************* IntentIntegrator integrator = new IntentIntegrator(getActivity()); Intent i = integrator.createScanIntent(); // `this` is the current Fragment startActivityForResult(i, IntentIntegrator.REQUEST_CODE); ****************************************************************************** want to say thanks. Give me a subscribe as well. lolzzzzzzzzzzz
@shashankchaudhary3335
@shashankchaudhary3335 4 жыл бұрын
Hi Sir, Thank you for the guidance for the app ! I am facing an issue after the scan completes. I have an app which has 2 pages. First page is login and the second page has the scan functionality with the scan button. On scanning it won't capture the results. It keeps going back to the first login page. I am unable to capture the text and display it in the app. Can you please suggest any solution for this ?
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
I do not see any reason for the results to not be captured. You do one thing. In the onResult method just switch to another layout using the setContentView API. It should help. You can refer to my below video if needed: kzbin.info/www/bejne/aKncf5StnK6ebbM Good Luck Programmer World programmerworld.co -
@shashankchaudhary3335
@shashankchaudhary3335 4 жыл бұрын
@@ProgrammerWorld Thanks a lot for your response sir !! I will give that a try ! I tried to pass the results in a toast message which worked fine but I will give a shot to set another content view as per your recommendation ! Thanks again !
@aparecejomark289
@aparecejomark289 4 жыл бұрын
Hi I'm currently working on simple qr code generator and scanner and I want to generate a multiline values for the qr and when I scan the qr code(the one that i also generated) i should get the values and then put it in different text views. Is this possible?
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
Yes, it is possible. There are multiple ways to achieve this. However, the simplest approach will be to just put a separator (like a comma, semicolon or back-slash) in your text which is converted into the QR Code. So, once you read this QR code then just separate the strings based on this separator symbol and then put the strings into different TextViews respectively. I hope above approach helps. Cheers Programmer World programmerworld.co -
@neinahmets
@neinahmets 3 жыл бұрын
what could be the reason that my scanner only can read urls and no plain text? please help
@ivaniliev890
@ivaniliev890 4 жыл бұрын
Hi can I see the whole source code anywhere like in github? Because I want to make the code work for vcard
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
Complete source code is shared at the link below: programmerworld.co/android/how-to-create-your-own-qr-code-and-barcode-scanner-reader-android-app-complete-source-code/ Good Luck Programmer World programmerworld.co -
@michaelbenedicto7845
@michaelbenedicto7845 4 жыл бұрын
Hi, I tried to copy your code completely but it gives me an error when I run the app. "Manifest merger failed with multiple errors, see logs". I'm not sure if it's because of the implementation 'com.journeyapps:zxing-android-embedded:4.0.2'. Please help. Thanks
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
Is your gradle sync successful (without any issues)? If yes, then this implementation of zxing should not give issues. Try with the latest version of this library. I think it is 4.1.0 version. If above suggestions don't help then share your code here. I will have a look. Good Luck Programmer World programmerworld.co -
@arkadiusz3618
@arkadiusz3618 4 жыл бұрын
How does the application know what to do when user presses button if you haven't set any onClickListener?
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
Because I have set the onClick attribute in the button's properties in the layout itself. Cheers Programmer World programmerworld.co -
@arkadiusz3618
@arkadiusz3618 4 жыл бұрын
@@ProgrammerWorld Thank you.
@juanpusongjr.3102
@juanpusongjr.3102 4 жыл бұрын
can you help me integrate a encrypted qr code where your scanner can only be the one to read it? thanks
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
I think it is pretty simple. Use my below videos to do so. First Encrypt the message using any of the below techniques: kzbin.info/www/bejne/mIe7hZJ3oK18e7M kzbin.info/www/bejne/oGeqpWBnrN5pq5o Then use the below method to generate your encrypted QR code: kzbin.info/www/bejne/jKSmgZeeepiIf5I Finally use the current video to read the QR code and decrypt the received message using the encryption method used in step-1. Source code of all these videos can be found at: programmerworld.co/android/ Good Luck Programmer World programmerworld.co -
@AnkitKumar-hm6qb
@AnkitKumar-hm6qb 4 жыл бұрын
hello sir, how can i add this app to the database so that whenever it scan something which is already in database it can extract the information from there and add it to cart Can you please help me with that
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
Hi Ankit, You can watch my below video which shows steps to develop a business app using Firebase database: kzbin.info/www/bejne/a2PTgohsiJtpiZI You can also watch below video which shows steps for creating business App using SqlLite database: kzbin.info/www/bejne/gJvHi2WgaJdgjbc Once you configure the database then it can be used to extract the information matching the scanned code/ text/ key from QR or barcode. Hope the above helps. Good Luck Programmer World programmerworld.co -
@learnwitharslan1049
@learnwitharslan1049 4 жыл бұрын
Thanks for the code sir, but it is not working on fragment. Help me
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
What is the error you are getting? The concept remains same, may be the zxing library does not support fragments. But I will have to check. Let me know the error your are observing. Good Luck Programmer World programmerworld.co -
@learnwitharslan1049
@learnwitharslan1049 4 жыл бұрын
@@ProgrammerWorld Thanks for replying sir, I've posted the solution in the second comment. Thanks
@elyu_vibes
@elyu_vibes 4 жыл бұрын
How can I display the result to another activity?
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
For that in the onActivityResult method, instead of setting the textview in the below line of code, save the output value in a variable and then call the other activity. For passing the output just use putExtra (on the variable) and read it similarly in your recipient activity side. textView.setText(intentResult.getContents()); For reference, the source code of this project can be found at the below link: programmerworld.co/android/how-to-create-your-own-qr-code-and-barcode-scanner-reader-android-app-complete-source-code/ Cheers Programmer World programmerworld.co -
@winston5421
@winston5421 4 жыл бұрын
Will the code be any different if used on Android 10? Because my app keeps closing itself and having an error popped up when i try to open it.
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
Try using the latest version of com.journeyapps:zxing-android-embedded in your implementation in gradle file. I think the latest version right now is 4.1.0. This should solve your issue. Good Luck Programmer World programmerworld.co -
@weichongheng1662
@weichongheng1662 4 жыл бұрын
@@ProgrammerWorld Hi, thanks for the quick reply! May I also know how do you hyperlink the website scanned by the QR code in the app?
@developer1410
@developer1410 4 жыл бұрын
can i use your work to show in college?
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
Yes, you can use it. I am perfectly fine. Just check with your university, some of them ask for citation. In that case you may have to do it. Good Luck Programmer World programmerworld.co -
@developer1410
@developer1410 4 жыл бұрын
thanks
@PrasadtechnicsALL
@PrasadtechnicsALL 4 жыл бұрын
Bro, How to convert image to QR code or Bar code...explain this bro..
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
Do you want to take the input form an Image file in this App for reading the QR code? If yes, then I do not think that is possible. In this library, intentIntegrator.initiateScan(), is meant to take the input from camera. It reads the scanned image directly from camera. Just for reference, the complete source code of this tutorial is shared at: programmerworld.co/android/how-to-create-your-own-qr-code-and-barcode-scanner-reader-android-app-complete-source-code/ Cheers Programmer World programmerworld.co -
@caglarpeker5083
@caglarpeker5083 4 жыл бұрын
My brother thank you firstly this very good sharings but ı need some thing a bout qr code. I need to share location by qr code in my app but cant find implementation about that . ıf ypu help me ı thank you soo much
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
It is pretty simple. You can get the latitude and longitude information from the location data of your phone and then create a QR Code using the concept shown in this video. For getting location information, you can watch any of my below videos: kzbin.info/www/bejne/qH-aqWalq7yYpq8 kzbin.info/www/bejne/fJzRg6efa9OSfJo kzbin.info/www/bejne/nqrMZZeCrrWnpqs Good Luck Programmer World programmerworld.co -
@caglarpeker5083
@caglarpeker5083 4 жыл бұрын
@@ProgrammerWorld thank you for answer ı will do that you say but ı want scan location code and automatically open that location on the google maps , so ı need to open a navigation program by qr code , thank you again
@TejasPatil-wp1em
@TejasPatil-wp1em 4 жыл бұрын
Sir I want to capture image of that barcode whenever it scans.. please help me ..
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
I don't think it is directly possible to take a snap of the QR code while scanning using zxing library (as used in this video). You have 2 options: 1. Either create a separate camera functionality to take pictures. You can follow my below video for the steps: kzbin.info/www/bejne/n2aUqHmfasufp9k 2. Else, create a separate class which takes cares of taking the picture and call that class from the IntentIntegrator.CaptureActivity mechanism (I don't have a tutorial on this). I hope above helps you. Good Luck Programmer World programmerworld.co -
@TejasPatil-wp1em
@TejasPatil-wp1em 4 жыл бұрын
@@ProgrammerWorld thank you.. for replying I already got solution... and yes I have used IntentInteger.CaptureActivity + needed to convert the bitmap image into uri by using separate converting function there, so it works perfectly.. thank you..
@ankushvishwakarma8544
@ankushvishwakarma8544 4 жыл бұрын
How to Convert in portrait mode
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
For converting to portrait, one will need to implement another class and then use setClass API to set the portrait. Also, respective activity in the Manifest file will need to be updated for the portrait view. Good Luck Programmer World programmerworld.co -
@bunnyyama2740
@bunnyyama2740 4 жыл бұрын
My code is showing android resource linking failed Anyone help me regarding this
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
Is your gradle is synced properly? Most likely dependencies has not been correctly implemented and synced in the gradle file. Please check. Good Luck Programmer World programmerworld.co -
@bunnyyama2740
@bunnyyama2740 4 жыл бұрын
@@ProgrammerWorld what is your gradle plugin version
@bunnyyama2740
@bunnyyama2740 4 жыл бұрын
4.0.0
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
My gradle uild version is 4.0.2. Please check the complete source code at the link below: programmerworld.co/android/how-to-create-your-own-qr-code-and-barcode-scanner-reader-android-app-complete-source-code/ Good Luck Programmer World programmerworld.co -
@bunnyyama2740
@bunnyyama2740 4 жыл бұрын
@@ProgrammerWorld thank you sir
@nangnainimanchey5868
@nangnainimanchey5868 4 жыл бұрын
Please mere liy ek bana dijye na. I will pay
@ProgrammerWorld
@ProgrammerWorld 4 жыл бұрын
The complete source code of this App is shared at the below link: programmerworld.co/android/how-to-create-your-own-qr-code-and-barcode-scanner-reader-android-app-complete-source-code/ Good Luck Programmer World programmerworld.co -
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 116 МЛН
小丑揭穿坏人的阴谋 #小丑 #天使 #shorts
00:35
好人小丑
Рет қаралды 46 МЛН
QR & Barcode Scanner App Tutorial in Android Studio
13:07
Indently
Рет қаралды 133 М.
Generating QR Codes And Barcodes in Python
14:28
Rishab Kattimani
Рет қаралды 19 М.
Android Barcode Scanner app || Qrcode Scanner || Android app
23:13
Coders TipsNtricks
Рет қаралды 13 М.
How To Generate QR Code in AppSheet and Send Automatically To Email
28:40
Building a Mobile App in 2024: The BEST Technologies
13:31
Dan Ilies
Рет қаралды 89 М.
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 116 МЛН