I think you code snippet has  currentUrl() as JS exposed function. Is there 
anyway to get urk infromation from android API. Android.currentUrl(url), 
caller can pass anystring. It is not necessary to be same url as it being 
loaded from.
But i think, if android API provides this infromation, it will be reliable 
information as   android known which url it is currently loading. 

On Tuesday, 6 March 2012 10:39:42 UTC+5:30, moktarul anam wrote:
>
> Hi Amit. 
>
> in html header 
> <script>
> function onload(){
>     var url = window.loacation;
> alert(url);
> Android.currentUrl(url);
> } 
>
> </script>
>
> <body onload="onload()">
>
> Moktarul 
>
>
> On Monday, 5 March 2012 18:03:30 UTC+5:30, Amit 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,
>>
>
> On Monday, 5 March 2012 18:03:30 UTC+5:30, Amit 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 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

Reply via email to