I'm a little new to Android, and I had a problem submitting an HTML form using WebView.
I am trying to upload a video to YouTube (I know that it is illegal! I do it for the sake of practice) by entering the URL of the video in the form of an existing website.
I also need to press the submit button.
Below is my code that seems to do nothing.
String javascript = "javascript: {"
+ "document.getElementById('aurl').value = " + videoUrl + ";"
+ "var button = document.getElementsByName('asubmit');"
+ "button.click(); }";
webView.loadUrl(javascript);
source
share