Skip to content

Can I suppress 03-03 23:07:26.984: E/ImageLoader(2031): java.io.FileNotFoundException: http://www.... #558

@danielkramer

Description

@danielkramer

I have a game which allows users to define an avatar image with Gravatar (www.gravatar.com). I don't know ahead of time if the user has defined one.. so I just try and load it, if it fails I have this fallback option set:

 .showImageOnFail(R.drawable.default_avatar_shape) 

I do get a lot of errors in the console for each failed attempt like:

03-03 23:07:26.984: E/ImageLoader(2031): java.io.FileNotFoundException: http://www.gravatar.com/avatar/dab1b40ea89da3c0fd80af4ca6860882?s=100&default=404

Can I wrap a catch or something to suppress these? I've tried but can't seem to catch it

String imageUri = "http://www.gravatar.com/avatar/" + emailHash + "?s=100" + "&default=404"; ImageLoader.getInstance().displayImage(imageUri, imageView); 

Thanks for any advice

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions