Delphi Berlin, blank android project, non-blocking input dialog with anonymous method.
Delphi Berlin, blank android project, non-blocking input dialog with anonymous method.
Thanks to point me to what's wrong with this code: if I click on dialog Cancel button my app crashes trying to access default value instead of my input (tested on two devices)
No differences using a valorized ADefault parameter or not calling that input dialog from OnShow event of the main form.
Use TDialogServiceAsync.MessageDialog http://docwiki.embarcadero.com/Libraries/Berlin/en/FMX.DialogService.Async.TDialogServiceAsync.MessageDialog http://docwiki.embarcadero.com/Libraries/Berlin/en/FMX.Platform.IFMXDialogServiceAsync.MessageDialogAsync
ReplyDeleteEli M Eli, nothing to do: using FMX.DialogService.Async.InputQuery leads to the same crash when I tap on Cancel button
ReplyDeleteThis worked with no crash for me on Nexus 7:
ReplyDeleteTDialogServiceAsync.InputQuery('Caption', ['Prompt'], ['Default Text'], procedure(const AResult: TModalResult; const AValues: array of string) begin end);
Eli M Thank you, I suspected it was a stupid error ([..]) but I have a bad feeling about the Emb documentation of this functionality (too difficult to find examples and a sensation that main pages lack to mention it)
ReplyDelete