Hi, i want to display a msgbox when i press the back button like :
"Do you realy want exit this application ?"
And if the user say "No", the activity still Active.
How to do this ? When i try :
the msgbox not appear and the Activity finished
thanks...
"Do you realy want exit this application ?"
And if the user say "No", the activity still Active.
How to do this ? When i try :
B4X:
Sub Activity_Pause (UserClosed As Boolean)
Dim iResultat As Int
iResultat = Msgbox2("Voulez-vous vraiment quitter l'Etude Conso ?","Etude conso","Oui","","Non",Null)
If iResultat = DialogResponse.NEGATIVE Then
UserClosed = False
End If
End Sub
the msgbox not appear and the Activity finished
thanks...