如何在完成後臺進程後關閉android中的進度對話框?無法關閉android中的進度對話框
我曾在谷歌嘗試過,但沒有得到具體的解決方案,因爲我想。
這裏是我的代碼:
private void next() {
String url = "http://10.0.2.2/final/studentrecord.php";
FetchDataTask task = new FetchDataTask(url);
dialog = ProgressDialog.show(this, "", "Fetching StudentList from Server...", true, true);
task.execute(url);
}
我怎樣才能做到這一點?
試試這個'dialog.dismiss()'你的進程完全 –
使用'dialog.dismiss後()''中onPostExecute'方法 –