Я хочу запустить ProgressDialog со следующим кодом:
Код: Выделить всё
pd = new ProgressDialog(this.getParent());
pd.setTitle("Title");
pd.setMessage("Message");
pd.show();
Thread t = new Thread() {
public void run() {
while (true) {
textView2.setText("OK");
}
}
};
t.start();
Прошу помочь в исправлении ошибки.