1

Touch events in Android WebView

view story
linux-howto

http://stackoverflow.com – I'm trying to make a WebView app in Android using the HTML5 canvas and touch. Here's what I think is the relevant part of my code : In onCreate : WebView myWebView = (WebView) findViewById(R.id.webview); WebSettings webSettings = myWebView.getSettings(); webSettings.setJavaScriptEnabled(true); ... myWebView.loadData(content,"text/html", "UTF-8"); Where the string "content" contains a block of html / javascript which contain the following lines. this.canvas = document.getElementById(AN_ID); // AN_ID is id of a canvas tag ... this.canvas.addEventListener("touchstart", funct (HowTos)