473,386 Members | 1,753 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,386 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 2497

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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.