Android Question Custom Dialogs on Samsung tables S2 10"

GiovanniPolese

Well-Known Member
Licensed User
Longtime User
Hi to all. I am experiencing a very bad situation with new Samsung tablets S2 10". I developed programs with previous Samsung Galaxy tablets, with no problem. With these new tablets, when I display a CustomDialog, if i touch the screen in any position outer of Dialog surface, the dialog gets a Cancel response and closes. This didn't happen on older Galaxy Tab 2 7" tablets. Of course this behavior forbids the use of CustomDialog on these tablets and it is not little thing. I hope to miss something, otherwise things run very bad.. Anyone can confirm this problem? I attach a test program clearly showing what happens. Thanks in advance.
 

Attachments

  • test.zip
    8 KB · Views: 261

Erel

B4X founder
Staff member
Licensed User
Longtime User
This is the standard behavior of dialogs.

I recommend you to avoid using CustomDialog. It is better to use a regular panel in front of the other views. You will have more control over the behavior.

You can do something like:
B4X:
Do While cd.Show("TEST Dialog","Positive","Cancel","Negative",Null) = DialogResponse.CANCEL
Loop
(Remove the Cancel button)
 
Upvote 0
Top