Android Question Msgbox and Msgbox2 Modal?

tdocs2

Well-Known Member
Licensed User
Longtime User
Greetings, all, and thank you in advance for answering my question.

core.xml - version 3.8
KEYWORDS
Msgbox
Method
Shows a modal message box with the specified message and title.

When I use Msgbox or Msgbox2, they do not behave as modal. If I click anywhere outside the Msgbox, it disappears - thus, non-modal.

I must have missed a foundational building block. The definition of a modal box is:

A modal dialog box requires the user to close the dialog box before any other action is taken.

Any help will be welcomed.

Sandy
 

ilan

Expert
Licensed User
Longtime User
you can create your own msgbox

1 panel, 2 buttons, 1 label thats it and like this you can take actions whyle the msgbox is shown..
 
Upvote 0

tdocs2

Well-Known Member
Licensed User
Longtime User
This is how dialogs in Android work. You can catch the response value and show the dialog again if it is DialogResponse.Cancel.

The dialogs are modal because the code waits until the dialog is dismissed.

Thank you, Erel.

I thought this was the way they work, but I am experiencing a different result:

When I use Msgbox or Msgbox2, they do not behave as modal. If I click anywhere outside the Msgbox, the Msgbox disappears - thus, behavior is non-modal.

And I am experiencing this in different tablets (all 4.0+) from different manufacturers, and in three different apps I developed.

AMMENDMENT 2014-09-22
It does not happen on Samsung Note V4.4.2. Modal behaves as modal.
However, I went back to test on a Nexus 10 V4.4.4, and Modal DOES NOT behave like modal.
AMMENDMENT

Best regards.

Sandy
 
Last edited:
Upvote 0
Top