Answer the question
In order to leave comments, you need to log in
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
the first thing that comes to mind is jsoup, or look at the request parameters and pull whatever you want (I would use retrofit)
HttpURLConnection will not help you click a button in the browser.
I recommend contacting the freelance exchange, you yourself will not do it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question