InputDialog and orientation

Fabrice La

Active Member
Licensed User
Longtime User
Hi,

I am using InputDialog. If it is visible and the divice change orientation I am losing the InputDialog.

How to keep InputDialog if the device change orientation ?

Thanks
 

Kevin

Well-Known Member
Licensed User
Longtime User
As I understand it, this is how a modal dialog behaves, at least in B4A. One thing you can do is set a boolean variable to True when the dialog is presented and False after the user chooses an option or cancels it. When you are restoring the state after device rotation, check the value of the variable and if True, show the dialog again.
 
Upvote 0
Top