Recently I ran your code and it threw exception NetworkOnMainThreadException. Finally I found out it's because of the http request in the UI thread. I solved this by implement the AsyncTask class. Maybe it is better to add that in the source code in WOEIDUtils.java and YahooWeatherUtils.java.
Recently I ran your code and it threw exception NetworkOnMainThreadException. Finally I found out it's because of the http request in the UI thread. I solved this by implement the AsyncTask class. Maybe it is better to add that in the source code in WOEIDUtils.java and YahooWeatherUtils.java.