Hi
I am trying to put a background image on the anchorpage.
I use the following code.
If I run this in debug it works every time.
If I run it in release it says 'Asset rain.jpg not found'.
Any ideas?
I am trying to put a background image on the anchorpage.
I use the following code.
B4X:
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.RootPane.LoadLayout("main") 'Load the layout file.
MainForm.Resizable = True
MainForm.WindowHeight = 650
MainForm.WindowWidth = 800
Version = "Ver 2.5"
MainForm.Title="CapConn "&Version
MainForm.RootPane.Style = "-fx-background-image:url('" & File.GetUri(File.DirAssets, "rain.jpg") & "');"
MainForm.Show
If I run this in debug it works every time.
If I run it in release it says 'Asset rain.jpg not found'.
Any ideas?