Hello,
I try this program and when i close this app and I go into settings, applications, manage applications, my program still works, is this normal?
I try this program and when i close this app and I go into settings, applications, manage applications, my program still works, is this normal?
B4X:
'Activity module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("test5")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
If userclosed=True Then
ToastMessageShow("Fermeture du programme",True)
End If
End Sub
Sub Activity_KeyPress(KeyCode As Int) As Boolean
Dim Answ As Int
Select KeyCode
Case KeyCodes.KEYCODE_BACK
Answ = Msgbox2("Voulez-vous vraiment quitter le programme ?", "A T T E N T I O N", "Oui", "", "Non", Null)
If Answ = DialogResponse.POSITIVE Then
Return False 'retourner false pour autoriser la fermeture du programme
Else
Return True 'retourner true pour empêcher la fermeture du programme
End If
End Select
End Sub
Last edited: