As a general tip, since you haven't touched on this, I suggest doing all web requests in IntentService so that it doesn't block your UI thread. As for the answer, you can use HttpURLConnection like this
public String getXMLFromUrl(String url) {
BufferedReader br = null;
try {
HttpURLConnection conn = (HttpURLConnection)(new URL(url)).openConnection();
br = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String line;
final StringBuilder sb = new StringBuilder();
while ((line = br.readLine()) != null) {
sb.append(line).append("\n");
}
return sb.toString();
} catch (Exception e) {
e.printStackTrace();
return null;
} finally {
try {
if (br != null) br.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
, , , :)