在子线程中创建dialog

liuxuefeng / 2023-05-23 / 原文

在子线程中创建dialog:

 

Thread action = new Thread(){

public void run(){

Looper.prepare();

todo();

Looper.loop();

}

};

action.start();