B4J Question [SOLVED] SetImage - release mode

jroriz

Active Member
Licensed User
Longtime User
Hi.
Why this works for debug mode, but for release mode it generates "file not found"?

B4X:
    Dim img As ImageView
    img.Initialize("")
    img.SetImage(fx.LoadImage(File.DirAssets, "finding.gif"))
    MainForm.RootPane.AddNode(img, 0, 0, MainForm.Width, MainForm.Height)
    MainForm.Show
 

MarkusR

Well-Known Member
Licensed User
Longtime User
b4j, sure?

i u speak about b4a,
maybe it is not a valid file for the setup.
i would try a .png and compare case-sensitive in file system and at sourcecode.
 
Last edited:
Upvote 0

jroriz

Active Member
Licensed User
Longtime User
It needs to be gif, cause its animated...
The case-sensitive is correct.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…