0

After submitting a form to the server

Java

WebView webView = (WebView) findViewById(R.id.webview);
webview.getSettings().setJavaScriptEnabled(true);

HTML

<form>
    <input type="text" name="helloWorld" value="zzz"/>
    <input type="submit" />
</form>

Assuming the server returns the text HTTP 200 and payload qwerty, how do I make the WebView process this return value in Java without using JavaScript from the webpage to call the application?

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
theAnonymous
  • 1,701
  • 2
  • 28
  • 62

1 Answers1

1

To get data from a webview, it's necessary the implementation of a WebviewAppInterface. I'm not sure if is possible without Javascript. Check this answer and the official documentation.

Tito Leiva
  • 892
  • 1
  • 12
  • 29