I am having trouble getting my activity to generate a MotionEvent.ACTION_UP. Probably a beginner\'s error.
In LogCat, I\'m only seeing the ACTION_MOVE event (which i
Your problem is that you're doing this from within a WebView. WebViews have built-in touch control to allow the user to scroll the page around, and that must be interfering with you receiving the MotionEvents. It would seem that you will need to use a different View. For example, I just ran your code making the following substitution:
TextView tv = new TextView(this);
setContentView(tv);
instead of
webview = new WebView(this);
setContentView(webview);
webview.loadUrl("file:///android_asset/Brand.html");
and everything else worked. Note: I used a TextView as the whole view just for simplicity. This works on ViewGroups like LinearLayouts, RelativeLayouts, custom Views with canvases etc. It just seems that WebViews are special. (I was also only receiving ACTION_MOVE when using the WebView.) So, I hope you can get away with using something other than a WebView!