callsubdelayed("activity2","on_start")
' in activity2
Sub Process_Globals
Dim SF As StringFunctions
Dim P As Phone
End Sub
Sub Globals
Dim ULV As UltimateListView 'Griglia --> Grid
Dim mpULV As Map
Dim ULV_LS As List 'Vettore della lista --> RecordSource
Dim ItemHeight As Int 'Altezza delle righe
Dim hj As HttpJob
Dim lsJOB As List
Dim mpWork As Map
Dim mapJOB As Map
Dim BD As BetterDialogs
End Sub
Sub Activity_Create(FirstTime As Boolean)
If Main.oapp.Is_Tablet Then
p.SetScreenOrientation(0)
Activity.LoadLayout("lay_sincro_dati")
Else
p.SetScreenOrientation(1)
Activity.LoadLayout("lay_sincro_dati_p")
End If
lsJOB.Initialize
mapJOB.Initialize
SF.Initialize
ULV_Init
End Sub
sub on_start
' some code
' the program crash here becouse if the user move the device,
' set screen orientation reset all the view and
' i have some errors where i try to bound the label, edittext ecc with data received from Web api.
ulv_load_data ' load data from web_api
....
end sub