Loading Image using picasso inside AsyncTask

后端 未结 3 1606
情话喂你
情话喂你 2020-12-20 10:02

I\'m using picasso to load an image as a background for my activity, I want to use an AsyncTask, while the image is loading, when done the progress bar dismisses to give bet

3条回答
  •  礼貌的吻别
    2020-12-20 10:19

    My guess is that the error is because you are trying to modify an UI element (dialog) inside a background thread, which is not possible.

    You don't need an AsyncTask for this, since Picasso already does the decoding in background.

提交回复
热议问题