Hi all,
I have a problem here... when downloading a bitmap, sometimes due poor internet connection the file is corrupted, but still written in filesystem like filename.png (or something like that...) . But when the app tries to load the file into a imageview, then get an error (many times an unrecoverable error that will obligate the user to delete data, what is not good)... the question:
is there any way to ensure that the file anything.png is real a bitmap and isn't corrupted before trying to load in a imageview (avoiding an error?)
I have a problem here... when downloading a bitmap, sometimes due poor internet connection the file is corrupted, but still written in filesystem like filename.png (or something like that...) . But when the app tries to load the file into a imageview, then get an error (many times an unrecoverable error that will obligate the user to delete data, what is not good)... the question:
is there any way to ensure that the file anything.png is real a bitmap and isn't corrupted before trying to load in a imageview (avoiding an error?)