من یه thread دارم ، کد زیر:
Waitpgb.setProgress(0);
new Thread(new Runnable() {
@Override
public void run() {
while (Waitpgb.getProgress()<100){
Waitpgb.setProgress(Waitpgb.getProgress()+1);
try {
Thread.sleep(10);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
}).start();
میخوام وقتی دوره زمانیش تموم شد یه کاری انجام بده مثلا یه پیغامی نمایش بده،
چطور با