[android-developers] Re: WebView Java script function

2012-03-08 Thread John Purcell
18:20:10 UTC+5:30, John Purcell wrote: Amit, But i think, if android API provides this infromation, it will be reliable information as android known which url it is currently loading. This is incorrect, *webkit* knows what url is authoritatively being loaded (not necessarily Android

[android-developers] Re: WebView Java script function

2012-03-06 Thread John Purcell
Amit, But i think, if android API provides this infromation, it will be reliable information as android known which url it is currently loading. This is incorrect, *webkit* knows what url is authoritatively being loaded (not necessarily Android). The webkit/JS container bridge is

[android-developers] Re: How to attain Browser Activity handle from webkit code in Frameworks/base?

2012-02-23 Thread John Purcell
The Context in question in WebView is, in fact, the Activity it is associated with (i.e. you can do a runtime check and do a safe cast from Context), though I'm not quite sure why you would want to do that. BrowserFrame is the JNI integration point from the actual webkit side of things (see

[android-developers] Re: WebView problem with youtube video

2012-02-02 Thread John Purcell
):      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599) 01-31 20:41:24.778: E/AndroidRuntime(399):      at dalvik.system.NativeStart.main(Native Method) Thanks very much Best regards Daniele On Jan 31, 1:02 pm, John Purcell jsp...@gmail.com wrote: In general, the loading of the URL should come last

[android-developers] Re: WebView problem with youtube video

2012-01-31 Thread John Purcell
In general, the loading of the URL should come last (right now you've got plugins and Javascript enabled messages being sent to the webcore after you send a url request). Is this on Honeycomb or ICS? (I'm guessing ICS due to the 'normal' errors you posted above). Keep in mind that video needs

[android-developers] Re: Javascript openDatabase callback never executes

2012-01-30 Thread John Purcell
Also keep in mind that certain versions of Android you should/must give webkit a custom path for your databases (websettings.setDatabasePath(), et al), which can be set on a per view basis (unlike AppCache, which is a singleton per app). On Jan 29, 1:26 am, Martin warwo...@gmail.com wrote: Hi.

[android-developers] Re: What does 'light touch' mean in WebSettings?

2012-01-30 Thread John Purcell
I haven't used this personally myself, but the src points to supportTouchOnly in WebViewSettings turning off touch highlighting, etc in the WebView (look for what WebViewSettings.setLightTouchEnabled() actually mutates and work backwards). John On Jan 30, 1:53 am, Sungil holy.adrea...@gmail.com