Android Question How can I get the feedback from HTML (which tag pressed)

Adamdam

Active Member
Licensed User
Longtime User
Dear All,
Greetings,
I view a page by Webview, the page contain multiple of hyperlinks
( i.e. , HTML <a> Tag, HTML <button> Tag )
How can I add code ( B4A function) in the main project built with B4A,
In other words, i'll use the HTML-page as some of buttons.

Thanks in advance,
Regards
 

DonManfred

Expert
Licensed User
Longtime User
Search for webviewextras and javascriptinterface
 
Upvote 0

Adamdam

Active Member
Licensed User
Longtime User
Many thanks Mr. Don, for your interest,

I try to find webviewextras2, that I think it has solution, but I didn't find it,

please if you have these libraries, please send me the link,
also, if you have link running example for what I need.
 
Upvote 0

Adamdam

Active Member
Licensed User
Longtime User
Dear Mr. Don,
Really many thanks for your effort.

I find attached project, it seam like what I need,
but i have problem,
" Dim DefaultJavascriptInterface1 As DefaultJavascriptInterface "
not defined,
and it also gave error message at loading to ask for webviewextras2.
please how I can run it,
or link to any other project gave the requested function
best regards
 

Attachments

  • TestPeta_updated.zip
    10.3 KB · Views: 203
Upvote 0
Top