I am trying to use Google\'s unofficial weather API in an Android Application.
I use this code:
//get the text from the edit text userZip = zipCo
I've ran into this problem with JDOM2 and it was really a NetworkOnMainThreadException in disguise. Threw it off the main thread and everything worked.
new Thread(new Runnable() { @Override public void run() { } }).start();