Capture webview event(button) to call B4A activity

ztigr

New Member
Licensed User
Longtime User
Hello,

Can someone put me on the path? User views a form in webview with an embedded button on the page (submits form). I want that to call an activity routine in my app. Would this be where the javainterface comes in?

ztigr
:sign0163:
 

NJDude

Expert
Licensed User
Longtime User
Depending on what you are doing, you could do something like in the attached project.

The app will open a second activity when you search something on Google.

Of course, depending on the complexity of your app you might need to use the lib Lagore suggested above.
 

Attachments

  • Sample.zip
    8.1 KB · Views: 357
Last edited:
Upvote 0

ztigr

New Member
Licensed User
Longtime User
This is what I did

I was working on my own before I came back to see the replies, and I sort of used the suggestions of both.

I compared the titles of the webviews before and after each touch event to get me where I needed.

Thanks guys!

:sign0098:
 
Upvote 0
Top