‫Hello, my friends, and welcome again.
‫We will continue creating the last method.
‫So this method will start reading the barcode data.
‫So we have scanned, we have gathered the image and create it inside a new instance and it's ready now
‫to be analyzed for loop barcode for every barcode inside the barcode list, make an instance named as
‫barcode and start analyzing this barcode.
‫So we have stored there before as a barcode list.
‫And inside this list of the barcodes, get every barcode and analyze it.
‫We start by act from the graphics bounds, creating the bounds barcode to get the bounding box point
‫array
‫corners equal to bar code dot get corner points.
‫Strange throw value equal to barcode dot get true value.
‫Now I will create an end value type
‫barcode dot get value type.
‫No.
‫We start by making a switch, even if the type of wi fi or type you are.
‫L oc.
‫So we start by switch.
‫Value type.
‫What we will do.
‫We will make a case.
‫Bar code.
‫Dot type.
‫WI fi.
‫I will create a strong side if if we are going to scan a wi fi barcode so you can make barcode.
‫Get wi fi dot, get s id.
‫I will create a string password for this wi fi.
‫I'm showing you two types.
‫If you are al or a wi fi and you can add many types.
‫I'll show you next.
‫Next type.
‫So get wi fi dot get password.
‫End type equal to barcode dot.
‫Get wi fi dot.
‫Get encryption type, then break.
‫The second case
‫is barcode dot.
‫You can check for all the types type wi fi type hi fi contact info calendar event email g, geo, ISBN
‫phone product, SMS, text and whatever you want in this app, I will use to type because I interested
‫in URLs and your wi fi if you have a barcode and you are scanned it.
‫This is popular in the restaurants and hotels and other, so you scan the barcode to get the wi fi password.
‫And this is the case that we have covered.
‫Now, if you if you are in a restaurant and you need the menu of this restaurant, so you scan the barcode
‫to get the menus, this link or this barcode will give you a link.
‫This link will have the menu of the restaurant.
‫And this is why we are making this in order to cover the case of wi fi, the case of link or L data
‫that is stored inside the QR code and allow you to connect it to a file and to get the URL of the app
‫of the menu or whatever you want.
‫If barcodes.
‫Thought is added
‫is added.
‫It's not here.
‫It's the.
‫From here, the button dialogue, button dialog that is added.
‫So what we will do, we will make a button dialog to show a new fragment manager and display an empty
‫tag else.
‫What we will do the button dialog here the fetch your URL.
‫If the QR code contains a URL, then display it.
‫If the if the button dialog is added and does not have any URL inside the QR code, then it will display
‫an empty string bar code dot.
‫Get your URL to get your.
‫Strange title equal to barcode dot get your app to get title and as from the string url.
‫Equal to bar code dot.
‫Get your r l to get your l and the break.
‫This is what we have done here.
‫And it's fairly simple.
‫Now let's clean the project.
‫And let's run it in the next.