Android Question get URL on loading webview

Tayfur

Well-Known Member
Licensed User
Longtime User
B4X:
'now showed "Google.com" on webpages
'after
LogColor("url_before:"& Web_Pages.Url,Colors.Blue)
    Web_Pages.LoadUrl("http://www.sabah.com")
    LogColor("url_after:"& Web_Pages.Url,Colors.Blue)

result is

afew second after "webpaged.finished" EVENT worked.
After I rechecked url.
RETURN:
"http://www.sabah.com"


How can I want to learninig on Loading time this URL (loading url is www.sabah.com)
 

Tayfur

Well-Known Member
Licensed User
Longtime User
You need to wait to the PageFinished event.
thanks for feedback
yes this is away
So; Web view return old URL when loading, Change URL when pagefinis.
I can not check loading direcetly or old URL/ new URL
for exp.
B4X:
if webview.isLoading=True then
   log("Please wait")
else
   log("go to new url or setting")
end if
 
Upvote 0
Top