Altering UI thread's Views in AsyncTask in doInBackground, CalledFromWrongThreadException not always thrown
问题 The following code in an AsycnTask: @Override protected Boolean doInBackground(View... params) { try{ Drawable drawPhoto = DataDatero.ImageDownload(taskPhotoName); ((ImageView)params[0]).setImageDrawable(drawPhoto); ((TextView)params[1]).setText(taskItemListText); ((TextView)params[2]).setTextColor(taskColore); ((TextView)params[2]).setText(taskItemStockText); [...] } Throws a CalledFromWrongThreadException , describing that: Only the original thread that created a view hierarchy can touch