Hi Everyone
im having this issue loading a webp on Imageview only on Android 7 to 4.4, i tried using the new webp library but same error:
i have a try catch
Error code:
It loads ok on Android 9 and 10, but not on lower Android, i attached some images with error to test
im having this issue loading a webp on Imageview only on Android 7 to 4.4, i tried using the new webp library but same error:
i have a try catch
B4X:
Try
'new webp lib
Dim WebP1 As WebP
WebP1.Initialize
Dim bmpbitmap As B4XBitmap=WebP1.LoadWebP(File.ReadBytes(File.DirInternalCache, Filename))
''Dim bmp As B4XBitmap = LoadBitmapResize(File.DirInternalCache,Filename ,ImageView.Width,ImageView.Height,True)
ImageView.SetBitmap(bmpbitmap)
anim.Start(ImageView)
ImageView.SetVisibleAnimated(200,True)
Catch
LogColor("Error",0xFFFF0000)
Log(LastException)
Log(LastException.Message)
End Try
Error code:
B4X:
(RuntimeException) java.lang.RuntimeException: Error loading bitmap.
codec->getAndroidPixels() failed.
It loads ok on Android 9 and 10, but not on lower Android, i attached some images with error to test