shouldOverrideUrlLoading() is called in webview thread and androdi calls JS 
function webviewcorethread. there is no guarantee that  
shouldOverrideUrlLoading() is called prior to JS call even though JS 
function is called on onload(). Infact in Android3.0/3.1,   
shouldOverrideUrlLoading() is never called.

Any other suggestion.

Thanks,
Amit

On Monday, 5 March 2012 18:16:52 UTC+5:30, ANKUR1486 wrote:
>
> chk this one, will u in getting the url 
>
> client = new WebViewClient() {
>
>             @Override
>             public boolean shouldOverrideUrlLoading(WebView view, String 
> url) {
>                 
>                 return true;
>             }
>         };
>
>
> On Mon, Mar 5, 2012 at 6:03 PM, Amit <[email protected]> wrote:
>
>> Hi,
>>
>> I am exposing java script function from my webview. This Java script 
>> function  is called by webcore thread on-page-loading inside webview. Is 
>> there any way to retrieve current loaded url inside called Java script 
>> function?
>>
>>
>> Thanks,
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to