Answer the question
In order to leave comments, you need to log in
how to make http request in java
I need to get information from the server which is stored in a .txt file. The problem is that it is desirable to get it by breaking it into lines. BufferedReader from JAVA in Android for some reason does not work, or I'm doing something wrong.
BufferedReader list = new BufferedReader(new InputStreamReader(this.sourseURL.openStream()));
String strTemp = "";
while (null != (strTemp = list.readLine())) {
...
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question