これは私の非同期タスククラスです...................。
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();
そこの問題は何ですか????????????????????????????