[android-developers] Re: webview touch problem
I found the same behavior when using an onTouchListener and then sending the events to a gestureDetector detecting single/double tap. Sometimes the javaScript would hang and not execute, I would love a more detailed answer on why this problems occur if we could get some dev. love :) On 27 Apr, 11:02, Kumar Bibek coomar@gmail.com wrote: This is indeed an issue I guess. Well, let me re-frame the problem. Say, you have a long page which you load on theWebView. Now you start scrolling. Before the scrolling stops, tap on the web view, and the scrolling will stop automatically. After this point, try to execute some JS code from outside, ie, without touching theWebViewagain. May be through a normal button, or a manu time. At this point, the JS is not called. But, now when youtouchthe web view again, and may be do a bit of scrolling, and try to execute the same JS, it works. I guess, the web view in this case, is not in a state to execute JS code. Is it a bug? Thanks and Regards, Kumar Bibek On Apr 27, 11:27 am, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: It's hard to tell if and where a mistake may have been made without seeing your html... Are you usingtouchor click events? -John Coryat Radar Now! What Zip Code? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: webview touch problem
It's hard to tell if and where a mistake may have been made without seeing your html... Are you using touch or click events? -John Coryat Radar Now! What Zip Code? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: webview touch problem
This is indeed an issue I guess. Well, let me re-frame the problem. Say, you have a long page which you load on the WebView. Now you start scrolling. Before the scrolling stops, tap on the web view, and the scrolling will stop automatically. After this point, try to execute some JS code from outside, ie, without touching the WebView again. May be through a normal button, or a manu time. At this point, the JS is not called. But, now when you touch the web view again, and may be do a bit of scrolling, and try to execute the same JS, it works. I guess, the web view in this case, is not in a state to execute JS code. Is it a bug? Thanks and Regards, Kumar Bibek On Apr 27, 11:27 am, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: It's hard to tell if and where a mistake may have been made without seeing your html... Are you using touch or click events? -John Coryat Radar Now! What Zip Code? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: webview touch problem
Writing touch based apps for Android WebView, and iPhone as well, is kind a tricky. Detecting touch events on the WebView doesn't work properly. You have to look for workarounds to get this working. Thanks and Regards, Kumar Bibek On Apr 26, 2:11 pm, Sunil Mishra mishra1...@gmail.com wrote: Hi All, I am writing ebookReader for Android using webview. I am using Iframe to separate the number of chapters. My problem is : while i am scrolling the webview and after that i touch the screen to stop scrolling, then after i click on the menu button(TOC) to open the div for Table of contents(TOC), then TOC div is not opening. if i scroll the webview again slightly then TOC Div is opened. my problem is mainly focus towards spontaneous touch of webview? and after that clicked on menu button. There is no mistakes in javascripts. Javascript code has been tested on major browser like Chrome,FF,IE and opera. So, please guide me what i did mistakes? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en