Hi,
I use the AndroidResources Library to supply the app with different resources.
I'm using the following to asign a bitmap-variable with a graphic resource
I can't find solution to assign "mBitmap" with the Resource-Bitmap without initially assigning it a Bitmap from a different file. Is there a better solution?
I use the AndroidResources Library to supply the app with different resources.
I'm using the following to asign a bitmap-variable with a graphic resource
B4X:
Dim mBitmap as Bitmap
Dim BitmapDrawable1 As BitmapDrawable
BitmapDrawable1=Main.MyResources.GetApplicationDrawable("DrawableResource")
mBitmap=LoadBitmap(File.DirAssets,"DrawableResource.gif")
mBitmap=BitmapDrawable1.Bitmap