I’m trying to paste a string from my application to a website.
My application looks as following: one EditText and one Button. My button opens a website with an open text box.
<input name="FreeTextBox" type="text" id="FreeTextBox" style="width:64px;">
this is the text box on the website
My application’s EditText id is et2 which is then the variable klass in java.
klassen = klass.getText().toString(); The klass variable is then made into a string called klassen
When I click my button I open a website and then I want my application to automatically enter whatever I wrote in my EditText into the FreeTextBox on the website.
Please give me advice on how to do this. This is my first application so I could really use some help.
Thanks in advance
Do you have control over the website? if not, then you are gonna need to get some more information, like the form action, and the input name, for example
If the form is like the one above I like using JSOUP (Download and import to your project)
Then I would use a code like this:
This code has the same effect as if you would have pasted the string in the website and then hit the Submit button. But again this might not be what you are looking for so please be more specific (Form source code and stuff)