Hi,
I need for my app one button for exit application with a question message.
This is the code:
When I tap button, application go to activity back, but don't close the app.
Please, help me.
Thanks
I need for my app one button for exit application with a question message.
This is the code:
B4X:
Sub lblExit_Click
Dim Answ As Int
Dim Txt As String = "Are you sure?"
Dim msgSi As String = "yes"
Dim msgNo As String = "no"
Answ=Msgbox2(Txt,"Question",msgSi,"",msgNo,LoadBitmap(File.DirAssets, "logo.png"))
If Answ=DialogResponse.POSITIVE Then
Activity.finish
End If
When I tap button, application go to activity back, but don't close the app.
Please, help me.
Thanks