2

I am working on an android app that is having a webview in it that holds a button in it.Now what I want to do is that whenever I click on that button instead of remain in the webview I should be redirected to the homepage of my android app.What should I do.

1 Answers1

0

You bind the WebView to your Android application with the JavascriptInterface. Here are some reference docs: https://developer.android.com/guide/webapps/webview#BindingJavaScriptCommunicationwith web-view and activity/fragment

Ravi
  • 2,277
  • 3
  • 22
  • 37