예제 #1
0
 public boolean processUrl(String city) {
   Uri u = Uri.parse(WEATHER_FEED);
   Uri.Builder builder = u.buildUpon();
   builder.appendQueryParameter("hl", "us");
   builder.appendQueryParameter("weather", city);
   String url = builder.build().toString();
   Log.v("", "run url " + url);
   handler.processFeed(url);
   currWeather = handler.getCurrentWeather();
   Log.i("", "current weather " + currWeather);
   weathers = handler.getForecastWeathers();
   return (currWeather != null && weathers != null);
 }