Android picasso, error reason

前端 未结 1 683
暗喜
暗喜 2021-01-13 05:18

How do I get error description in picasso :

    Picasso.with(context)
        .load(getUrl())
        .placeholder(R.drawable.user_thumbnail_big)
        .e         


        
相关标签:
1条回答
  • 2021-01-13 06:14

    I had the same problem I solved it through :

    The global instance listener receives HTTP exceptions for reporting upstream to a crash reporting service or analytics service.

    regards to : https://github.com/square/picasso/issues/379

    public class MyClass implements Picasso.Listener {
        @Override
        public void onImageLoadFailed(Picasso picasso, Uri uri, Exception exception) {
        // Display the exception
        }
    }
    
    0 讨论(0)
提交回复
热议问题