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!
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…