Hello
Is there a way to restore the already entered text of an input dialog, if the user switches to another app and then returns to my app?
When I switch to the home screen or another app while the input dialog is shown, the result code is never called and thus I cannot store the input text in a global variable. When I return to the app, the dialog is closed and the already entered text is lost. Is there a solution to this problem?
Thank you!
Is there a way to restore the already entered text of an input dialog, if the user switches to another app and then returns to my app?
B4X:
Dim id As InputDialog
Dim sf As Object = id.ShowAsync("", "Enter your name", "Ok", "", "Cancel", Null, False)
Wait For (sf) Dialog_Result(Result As Int)
Log(id.Input)
When I switch to the home screen or another app while the input dialog is shown, the result code is never called and thus I cannot store the input text in a global variable. When I return to the app, the dialog is closed and the already entered text is lost. Is there a solution to this problem?
Thank you!