-1

please guide me I want to know How to make an automatically click on a web link inside web view in my android application?

sia121
  • 1
  • 4

1 Answers1

0

As Lee Chou stated,

Use Javascript to handle the "clicking" in the Webview:

  1. Extend WebViewClient to handle onPageFinish
  2. Check if the url is correct
  3. Run the javascript code with webView.loadUrl("javascript:" + jsClickButton)

Caution: This method is very fragile, so this is not recommended unless the site is your own.

You can also go through from here: http://howtrick.com/make-android-website-app-using-web-view-android-studio/

SkyWalker
  • 28,384
  • 14
  • 74
  • 132