473,327 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Android Studio: Copy textbox entry to webview page form

116 64KB
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?

Expand|Select|Wrap|Line Numbers
  1. userelm = myWebBrowser.Document.GetElementById("username")
  2. passelm = myWebBrowser.Document.GetElementById("password")
  3. userelm.InnerText = myUser.Text
  4. passelm.InnerText = myPassword.Text
  5. myWebBrowser.Document.GetElementById("login").InvokeMember("Click")
  6.  
Many thanks!
Jul 17 '15 #1
0 2493

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: feng | last post by:
Hi, I have a aspx page that contains a textbox. When the page loads, it's always the browser's address bar or other browser controls has the focus. What I want however, is to let the textbox...
13
by: fong.yang | last post by:
I have a combo box with different types of business listed. If a user selects "Other" from the combo box list I want to make so that the user is required to make an entry in a textbox on the form....
0
by: Tim_Mac | last post by:
i say "bug" in quotes because i can't really blame microsoft for a feature not working in a non-microsoft browser. However, i would have preferred if they did some better browser testing! if i...
3
by: gvloenen | last post by:
How do I get text entered in a textbox, limit the info desplayed in the drop down portion of the textbox? I have a form that displays addresses linked to an Access database. If I only want to...
2
by: MickT | last post by:
On an MDI application in VB.NET, I have one child form with a multiline text box. I am opening another child form, from the first form, as a "help" to create a SQL statement on the first form, by...
6
by: =?Utf-8?B?SFJzb2Z0IEluZm9ybcOhdGljYQ==?= | last post by:
I Have a page (clientes.aspx), inside a masterpage I have some textbox, and when the user clicks the button 'Cancel', I need to empty all controls. I tried this, with runtine error: For Each...
5
by: Bugran | last post by:
I am trying to copy a textbox field on a form (which basically contains the body of a letter) into a memo field in a table (Access 2003) for later printing later. Of course Access queries/SQL will...
1
by: sprad | last post by:
I try to copy value of textbox from one form to another textbox of another form when checkbox is checked. So did anybody have idea how to do it.Please reply me as soon as possible. Thanks..
0
gautamz07
by: gautamz07 | last post by:
Hey guys, i am coming on here after a long while :) hope you all been doing fine. I just have a quick question anybody here every used a db like crouchDB to connect to a android application. how do...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.