Answer the question
In order to leave comments, you need to log in
How to make a request in Android?
Good evening. I'm just learning to write programs for Android and I need to make the simplest request to 'site.ru/name.txt'. And in this file there will be text that needs to be placed in a line. How to make such a request in Android?
Answer the question
In order to leave comments, you need to log in
Hello!
Learn the basics of http requests.
For example, https://habr.com/post/50147/
In particular, pay attention to the GET & POST methods.
You need to get site.ru/name.txt using the GET method.
Here is an example - https://developer.android.com/training/volley/simple
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question