Free QR Code Generator on Titanium Appcelerator
I was looking around for a simple way to generate QR code in Titanium Appcelerator and to my surprise, they aren't any around.
The top results in Google Search was this link, which is bad cause you need to have internet connection to generate the QR code as it relies on Google Chart API. Not only that, you need to start writing your figuring out a way to cache the data and writing Views to handle offline connection. Just inefficient and cumbersome.
I happened to read the comments of the post (usually I don't) and found out about this, which ain't too bad. Just that, I don't like the fact that I don't know where to store the html file and I have to create a Ti.UI.WebView everytime I need to use it.
So I created a "wrapper" to make things easier and if I ever need it for other projects. Some people might comment that WebView ain't that efficient. Well, it could be, but, at the moment, it served my requirements. Till I need to worry about performance (im not sure how much faster it can be optimized), I think I'll stick to this.
Here's the screenshot:
All you need is to clone this repo into your "Resources/libs/qrcode" and you can start using it. Remember to change the path if you have a different path that mine. Here's the code. Enjoy!