我在某些活动中添加进度对话框。但我在标题中提到异常。如何解决它。
dialog = ProgressDialog.show(Notification.this, "loading please wait",
"Loading. Please wait...", true);
new Thread() {
public void run() {
try{
performBackgroundProcess1();
//sleep(3000,000);
} catch (Exception e) {
Log.e("tag", e.getMessage());
}
// dismiss the progress dialog
dialog.dismiss();
}
}.start();
this.all 的任何问题都在 performbackgroundprocess 方法中执行后台进程。