Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个应用程序,我需要AsyncTask在同一个活动中单击一次按钮调用两个 s。怎么做?
AsyncTask
任何帮助表示赞赏。也请提供一些代码。
Nothing fancy, just start them one by one, they are async anyway.
private class TaskA<A,B,C> extends AsyncTask{} private class TaskB<A,B,C> extends AsyncTask{} onClick(View v){ (new TaskA()).execute(); (new TaskB()).execute(); }