Check if an external Bitmap is valid before loading

Toon

New Member
Licensed User
Longtime User
I tested around a bit with those very easy to access but sometimes unreliable Wi-Fi connections. The problem I encountered with my app (downloads images from the internet and stores them on the SD) is that when the download-process is interrupted, sometimes the images are downloaded but not valid/viewable.

Is there a way to see if an external is valid before loading it with LoadBitmap (which returns an error if the previously described problem happens)?

*I don't mean just check if the file exists, I know how to do that.
 
Top