Code:
try
{
new DefaultHttpClient().execute(new HttpGet("http://www.yahoo.com/"));
}
catch (Throwable ex)
{
Util.createDialog("", ex.getLocalizedMessage(), null);
System.exit(1);
}
Sometimes it works, sometimes it doesn't. The error is unknown host, and the problem is usually resolved by restarting the emulator. This happens with my employer's URL, too. I don't think it's the host.
???
Oh, and sometimes the program just crashes, even though I'm catching Throwable.