private void queryWeatherInfo(String countyName) {
// TODO Auto-generated method stub
Log.d("haha", "开始查询天气");
String address="http://apis.baidu.com/heweather/weather/free";//http://apis.baidu.com/heweather/weather/free
Parameters param=new Parameters();
countyName=ChangeHanziToPinyin.getPinYin(countyName);
Log.d("haha", "cityName is "+countyName);
param.put("city", countyName);
ApiStoreSDK.execute(address, ApiStoreSDK.GET, param,new ApiCallBack() {
@Override
public void onSuccess(int status, String responseString) {
Log.d("haha", "请求成功");
Utility.handleWeatherResponse(WeatherActivity.this, responseString);//存入了sharepreferce
}
@Override
public void onComplete() {
}
@Override
public void onError(int status, String responseString, Exception e) {
Log.d("haha", "错误进入onerror,参数为"+status);
}
});
}
进入这个函数后,最关键的ApiStoreSDK.execute直接跳过了运行后面的程序,该怎么解决