Open GoogleCodeExporter opened 9 years ago
create a webview in the success callback function after scanning, set
sourceType to ZBarReaderViewController and it should scan automatically
Original comment by bhuenefe...@gmail.com
on 19 Mar 2011 at 5:27
any chance of charing some code in doing this? (adding a webview in the succes
callback function)
Thanks!
Original comment by willae...@gmail.com
on 3 Apr 2011 at 10:01
You really should run the url through a regex to make sure it's what you need
first but the error function will catch the issue and the page just won't load
unless the url is of correct format.
success: function(data) {
if(data && data.barcode) {
if(data.symbology == "QR-Code") {
var webView = Ti.UI.createWebView({
url: data.barcode
}).show();
webView.addEventListener('error', function(e) {
Ti.API.error(e.message);
});
}
}
}
Original comment by bhuenefe...@gmail.com
on 3 Apr 2011 at 9:45
Hi, thanks for sharing the code, however, i can't get this to work. I get a
parse error....
any ideas?
Original comment by willae...@gmail.com
on 29 Apr 2011 at 11:31
what's the error you get?
Original comment by bhuenefe...@gmail.com
on 29 Apr 2011 at 6:56
Original issue reported on code.google.com by
andywhit...@gmail.com
on 25 Feb 2011 at 10:32