android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
问题 I am developing an android app in which i need to display images after downloading them from server and when the downloading is proceeding a progress dialog is being show. For that i an using an asynctask class. I am using t he following source code for it. private void startDownload() { new DownloadFileAsync().execute(imageUrl); image.setImageBitmap(bitmap); } @Override protected Dialog onCreateDialog(int id) { switch (id) { case DIALOG_DOWNLOAD_PROGRESS: dialog = new ProgressDialog(this);