Android 获取天气数据
/**
* 天气API
* @param cityname
* @return
*/
private String getUrl(String cityname){
return "http://wthrcdn.etouch.cn/weather_mini?city="+cityname;
}
传入城市,即可返回天气数据
/**
* 天气API
* @param cityname
* @return
*/
private String getUrl(String cityname){
return "http://wthrcdn.etouch.cn/weather_mini?city="+cityname;
}
传入城市,即可返回天气数据