Hi.
I am trying to write a basic app in Android Studio (my first attempt).
I have an EditText field for a username and one for a password plus a button. I also have a WebView which will contain a webpage with a login form.
Since I'd like to keep the actual webpage hidden (as it is a mess on a phone device), I'd like to be able to type into the app form and have the app button transfer the data to the web elements and force a submit of the web form.
In VB it is done as follows - how would it be done in Android Studio?
Many thanks!
I am trying to write a basic app in Android Studio (my first attempt).
I have an EditText field for a username and one for a password plus a button. I also have a WebView which will contain a webpage with a login form.
Since I'd like to keep the actual webpage hidden (as it is a mess on a phone device), I'd like to be able to type into the app form and have the app button transfer the data to the web elements and force a submit of the web form.
In VB it is done as follows - how would it be done in Android Studio?
Code:
userelm = myWebBrowser.Document.GetElementById("username") passelm = myWebBrowser.Document.GetElementById("password") userelm.InnerText = myUser.Text passelm.InnerText = myPassword.Text myWebBrowser.Document.GetElementById("login").InvokeMember("Click")