T
T
techoproMas2018-12-23 20:49:43
Java
techoproMas, 2018-12-23 20:49:43

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

2 answer(s)
O
Orkhan, 2018-12-24
Hasanly @azerphoenix

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

A
aol-nnov, 2018-12-23
@aol-nnov

No need to make requests to Android Studio. It needs to write programs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question