这是我的 asynctask 类........
public class UpdatingNews extends AsyncTask<String, Void, String> {
private Database_WebService webservice;
private Context mContext;
public UpdatingNews(Context context){
this.mContext = context;
}
@Override
protected String doInBackground(String... params) {
webservice = new Database_WebService(mContext);
webservice.updateallCatNews();
webservice.UpdateAllNews();
return null;
}
@Override
protected void onPostExecute(String result) {
startActivity(new Intent(Main_Launcher.this,
Main_FormNewUser.class));
finish();
}
}
当我调用它时......
update = new UpdatingNews(this);
check = webservice.CheckSurveySubmit();
int secondsDelayed = 3;
new Handler().postDelayed(new Runnable() {
public void run() {
if (check == 0) {
update.execute("...");
}
if (check == 1) {
startActivity(new Intent(Main_Launcher.this,
Main_AllLatestNews.class));
finish();
}
}
}, secondsDelayed * 1000);
它没有执行.......................
webservice.updateallCatNews();
webservice.UpdateAllNews();
有什么问题????????????????????????