Barcode Scanner HTML5
This barcode scanner app uses an Android standard in the
activity_main.xml layout. To load the HTML5 app, just call
loadUrl() on the WebView providing a path to the main HTML file. Please notice that in this case the HTML5 app is stored inside the Android app, in the assets/ folder, but it can be moved anywhere.
Please take a look at the function
setupWebView() that contains the initialization and some useful configuration of the WebView.
Please notice that this solution can lead to security breaches if not done in a safe way.
The main application is a standalone HTML web application that can run in any web browser (older I.E. not supported) and resides in
assets/www/. The app is based on AngularJS (v1).
Please notice that CSS is written in SCSS, so please build it after any modification or use the already compiled version .css.