I want to read a XML document from a URL:
public void DownloadXmlFile() throws IOException{ //TODO String url = \"http://api.m1858.com/coursebook
Why you don't google or look for the error here on stackoverflow? It's full of answers...
You have to extend an AsyncTask to avoid the blocking of the GUI and do this kind of operation (as downloading or parsing stuff) in background.