A Simple QR Code Scanner and Generator for Android
Before the end of our Android class next week, our teacher gave us an assignment which is to create a small application using all the basic knowledge we’ve learned so far. There are plenty of choices actually. A few of them seemed to be kind of difficult. But most of them is quite simple. After a short discussion, our group finally choose to make a qr code scanner and generator.
At first, I thought this might be a little difficult since We’ve never learnt something about how the qr code actually work. So, thanks to the power of the Internet, we finished the work pretty much in just one day with the help of two opensource projects: Swetake QR Code project and Zxing project. These two projects will be very useful if you are creating a project with qr code functions. What’s best, they even explain the theory about how the qr code works. Good job! I have to say. The pictures below show the final result of our tiny qr code application. If you are interested in it, you can download the source code here.
PS: If you want to know how to change the zxing scanner into portrait mode, you can check the code yourself. We found a perfect solution after a long time of searching on the Internet eventually.