On this forum I cant find solution how to close custom dialog.
I understand that's another activity above my activity, but it reacts on button clicks, and I can run code in button clicks sub while this dialog is shown.
Can this cub be used to close custom dialog without user clicks on yes/no/cancel? Maybe catch activity with reflector somehow?
I have some graphic options for user to select, and there is only one click necessary, and I don't want that user must select also ok after selection ..
Just tried this within one of button click sub, but it thoes not work..
I understand that's another activity above my activity, but it reacts on button clicks, and I can run code in button clicks sub while this dialog is shown.
Can this cub be used to close custom dialog without user clicks on yes/no/cancel? Maybe catch activity with reflector somehow?
I have some graphic options for user to select, and there is only one click necessary, and I don't want that user must select also ok after selection ..
Just tried this within one of button click sub, but it thoes not work..
B4X:
Dim r As Reflector
Dim a As Activity
a=r.GetActivity
a.Finish
Last edited: