Android Question How to avoid msgbox hide by touching outside of it?

tucano2000

Active Member
Licensed User
Longtime User
When I touch the outside of the dialog msgbox or dialog msgbox2 it disappears. I want to know how do to avoid this?
 

tucano2000

Active Member
Licensed User
Longtime User
It is the same as pressing on the back key. It will return DialogResponse.CANCEL (-3).

You can show the dialog again:
B4X:
Sub Activity_Create(FirstTime As Boolean)
   Dim res As Int = DialogResponse.CANCEL
   Do While res = DialogResponse.CANCEL
     res = Msgbox2("aaa", "bbb", "Yes", "", "No", Null)
   Loop
End Sub

Thanks Erel, I tested it and it works perfectly !!!
 
Upvote 0
Top