This code does not work:
URL url = new URL( xmlPath ); InputSource input = new InputSource( url.openStream() );
all the time, leading to an UnknownHostException exception, even when the host exists, it was successful using the same code if from a different development node (machine), as well as from the browser.
I'm probably out of order, asking this question again, I will repeat Android java.net.UnknownHostException: Host is not resolved (strategy question). The forum software would not allow me to comment on the unsatisfactory answer to this question (in order to pay more attention to the solution that I ultimately found). Maybe I'm not popular enough to get this privilege. In the meantime, I am essentially rewriting the question and the other answer.
Basically, I agree that, perhaps, the Android device in certain circumstances is having difficulties with DNS, but I tried, for example, anddev.org example on how to use the SAX analyzer, and it worked on the same machine I have, not on the other.
Edit: As already noted, I know a working answer and will post it.
I a) ask a question (which has already been asked and answered unsuccessfully) and b) answering it in the interests of those for whom my answer will be useful.
android
Russ Bateman Aug 18 '10 at 16:36 2010-08-18 16:36
source share