doInBackground
のAsyncTaskメソッド内でProgressDialog
を実行することができません。それは私に次のエラー与える:AsyncTaskのdoInBackgroundメソッド内でProgressDialogを実行できないのはなぜですか?
ERROR/AndroidRuntime(12986): Caused by: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
を、エラーがコードでこの行にある:
final ProgressDialog dialog = ProgressDialog.show(GalleryView.this, "Refresh", "Loading... please wait", true);
すべてのヘルプははるかに高く評価します。
これは私がやろうとしていることです。私はコードの上にprogressdialogを実行したい。コードが終了すると、ダイアログを閉じ、AsyncTaskを呼び出してUIを更新します。私はこれを達成することができません。 –