I
I
ivan8m82016-07-09 16:16:03
Android
ivan8m8, 2016-07-09 16:16:03

How can I send data from an android application to a form on a website?

Good day to all.
Let's say that there is a website, for example, where you can leave a comment without registration.
There is an application for android, which contains two elements: lineEdit and a simple button.
It is required to send the contents of lineEdit as a comment to the web site by clicking on the button in the android application.
Those. the text from lineEdit is meant to be pasted into a comment box on the website, and then a button on the website is clicked that submits the comment.
Actually, most of all I'm interested in how to insert text into the required form through android, as well as how to press a button on a website. I read a little about HttpURLConnection, but did not find information on how to select exactly the element on the site in which I want to insert data.
I will be very grateful for your help.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
Oleg Gamega, 2016-07-10
@ivan8m8

the first thing that comes to mind is jsoup, or look at the request parameters and pull whatever you want (I would use retrofit)

O
one pavel, 2016-07-09
@onepavel

HttpURLConnection will not help you click a button in the browser.
I recommend contacting the freelance exchange, you yourself will not do it.

I
ivan8m8, 2016-07-09
@ivan8m8

For example, in C# this is not difficult to do:
Isn't there such simplicity in Android?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question