62,635
社区成员




public String getWeather(){
String weatherinfo = "";
// getWeatherByHttp()是通过网络请求获取天气信息
weatherinfo = getWeatherByHttp();
return weatherinfo;
}
getWeatherByHttp() 你这个方法没执行完 就返回了? 有没有debug看看 我平常也是这样用的 没出现你说的这种情况
添加一个判断weatherinfo是否为空的while循环试试