Cancelable cancelable = new Cancelable() {
public void cancel() {
// Nothing
}
};
final WaitDialog dialog = new WaitDialog(cancelable, "title",
"message", engine);
Thread showThread1 = new Thread() {
@Override
public void run() {
dialog.show();
}
};
Thread showThread2 = new Thread() {
@Override
public void run() {
dialog.show();
}
};
Thread hideThread1 = new Thread() {
@Override
public void run() {
dialog.hide();
}
};
Thread hideThread2 = new Thread() {
@Override
public void run() {
dialog.hide();
}
};
showThread1.start();