Search code examples
javajavascriptandroidnotation

Best way to present Javascript rendered material with Android?


I'm trying to make use of Vexflow (http://vexflow.com/) on the Android. However, I'm stumped as to the best way to display the output. Is it possible to have a series of webviews and then feed the javascript calls to them? Something like this is what I'm trying to achieve:

example image http://paraboxstudios.com/javascript_example.png


Solution

  • You can include an HTML file along with any JavaScript files in your assets or resources and then load it in a single WebView. The loadData method may be of particular interest (if you have problems, you can also try the loadDataWithBaseURL method which sometimes gets around some issues).