지역날씨를 출력하는건데 지역이 다른지역에서 시험하면 날씨가 나오는데 창원지역에서 날씨가 나오질않습니다.
"http://www.google.co.kr/ig/api?weather=changwon" 하면 나옵니다. 어디가 문제인가요? m_sRegion 을 따로 출력해서
보는방법은없나요??
protected Object doInBackground(Object... params) {
List<Address> tList=null;
String weather= null;
try {
tList = geoCoder.getFromLocation(mLatPoint, mLngPoint, 1);
} catch (IOException e) {
}
m_sRegion = tAddr.getLocality();
XmlPullParserFactory factory = null;
try{
factory = XmlPullParserFactory.newInstance();
factory.setNamespaceAware(true);
XmlPullParser xpp = null;
xpp = factory.newPullParser();
String connectUrl = "http://www.google.co.kr/ig/api?weather="
+m_sRegion;
URL UrlRecWeather = null;
UrlRecWeather = new URL("connectUrl);
InputStream in;
in = UrlRecWeather.openStream();
xpp.setInput(in, "euc-kr");
weather = ReceiveParsing(xpp);
}
catch(Exception ex)
{
}
mWeather = weather;
return null;
}
@Override
protected void onPostExecute(Object result) {
super.onPostExecute(result);
mWeatherTextView.setText(mWeather);
}
}
그게 문제가 아닙니다. 그건 단순히 오타에요; "http://www.google.co.kr/ig/api?weather="
+m_sRegion; 여기변수에 지역을 받아와야 다른곳에서도 그 지역날씨를 받아올수있으니 근데 창원에서만 안되서요




chanwon?
http://www.google.co.kr/ig/api?weather=changwon
으로 하니깐 되네요? -_ -