Hi, my compiled jar file runs OK but when I package it, only the splash screen runs and the project closes. I tried reversing the order of closing the splash screen and opening the 'object' form, the jar file runs ok but the packaged product won't run. The object form fills a table view with records and this all runs fine in the jar file. Is it ok to use the a splash form in this way?
Thanks for any suggestions.
Thanks for any suggestions.
B4X:
#Region Project Attributes
#MainFormWidth: -1
#MainFormHeight: -1
#AdditionalJar: lib/sqlite-jdbc-3.8.11.2
#End Region
Sub Process_Globals
Private fx As JFX
Private frmMain As Form
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim ProgName As String : ProgName = "Collection Manager"
Dim ProgVersion As String : ProgVersion = "Version 0.9 05/12/2016"
Dim Copyright As String :
Dim lblName As Label
Dim lblVersion As Label
Dim lblCopyright As Label
End Sub
Sub AppStart (Form1 As Form, args() As String)
frmMain=Form1
frmMain.Initialize("frmMain", 500, 500)
frmMain.RootPane.LoadLayout("Startup.bjl")
frmMain.Resizable=False
frmMain.SetFormStyle("UNDECORATED")
lblName.Text=ProgName
lblVersion.Text=ProgVersion
lblCopyright.text=Copyright
'splash screen - title screen -
Timer1.Initialize("Timer1", 2000)
Timer1.Enabled=True
frmMain.Show
End Sub
Sub Timer1_tick
ObjectForm.ShowObject
frmMain.Close
End Sub
Last edited: