Hello.
I have a problem with my application.
If I wrote :
(Whe are in the Main activity, MiseAJourTable is another sub.)
My program make something strange:
1 - the activity User is not called (i am sure that variable="")
2 - the program continue is execution and stop (pause) later in the main activity, in the MiseAJourTable sub
3 - after few seconds, the screen of the mobile device become black (not turn off, just black)
The subs stack indicator (debug mode, left part of the screen) indicate that in the Main activity, I have 2 subs "activated", first is the MiseAJourTable sub, the second is the Activity_resume sub (or in the other order, I don't remember exactly. If it's important, I can confirm that later).
If i wrote :
the program works but not exactly like my desire:the MiseAJourTable must be called at each resume of the activity.
I don't understand my mystake. Could you help me please ?
thx
I have a problem with my application.
If I wrote :
B4X:
Sub Activity_Resume
If variable="" Then StartActivity("User")
Activity.Title = "FlexiPoint - " & variable
MiseAJourTable
End Sub
My program make something strange:
1 - the activity User is not called (i am sure that variable="")
2 - the program continue is execution and stop (pause) later in the main activity, in the MiseAJourTable sub
3 - after few seconds, the screen of the mobile device become black (not turn off, just black)
The subs stack indicator (debug mode, left part of the screen) indicate that in the Main activity, I have 2 subs "activated", first is the MiseAJourTable sub, the second is the Activity_resume sub (or in the other order, I don't remember exactly. If it's important, I can confirm that later).
If i wrote :
B4X:
Sub Activity_Resume
If variable="" Then
StartActivity("User")
Else
Activity.Title = "FlexiPoint - " & variable
MiseAJourTable
End If
End Sub
the program works but not exactly like my desire:the MiseAJourTable must be called at each resume of the activity.
I don't understand my mystake. Could you help me please ?
thx