This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

webview not responding to touch events  RSS feed

 
Ksh Aggarwal
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Im using an embedded webview to display a webpage which is made up of image thumbnails. These thumbnails are links to further webpages. Now my application randomly stops responding to my touch events on these thumbnails. It happens more frequently when the device wakes up from a standby. but this problem is fixed when i load some other page and come back to the thumbnails page.

I tried adding an onClickListener to the webview but it never return anything, even when the application is running fine.

Thanks in advance
 
Ksh Aggarwal
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found the problem.

Apparently Android Webview component has a bug due to which it randomly stops responding to touch events.
For more details http://code.google.com/p/android/issues/detail?id=929

Bug is due to the attribute android:layout_height="wrap_content" in the web view component. Workaround can be any other value for this attribute instead of wrap_content
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!