Android Question LoadBitmap a wrong image

chag616

Member
Licensed User
When I want to load a broken image:
B4X:
ImageView.Bitmap=LoadBitmapResize(dir, fileName,Activity.Width,Activity.Height,True)
the result is:
B4X:
java.lang.RuntimeException: Error loading bitmap.
and the app is collapsed.
How to solve this problem(skip the broken image),thanks!
 

Omar Parra A.

Expert
Licensed User
Longtime User
jejeje:

Not Image:

1616207832445.png
 
Upvote 0
Top