📜  asynctask android 替代 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:28.946000             🧑  作者: Mango

代码示例1
new Thread(new Runnable() {
  @Override
  public void run() {
      //Do stuff
          runOnUiThread(new Runnable() {
              @Override
              public void run() {
                  //UI updates
              }
          });                
      }
}).start();