Hello,
I need to get a text on Android. The same code works well with Windows, but on Android it doesn't.
I use this code:
var TaskDialog: TTMSFNCTaskDialog := TTMSFNCTaskDialog.Create(Nil);
.. // title, content etc.
TaskDialog.InputType := titEdit;
TaskDialog.Execute(
procedure(ModalResult: TModalResult)
begin
case ModalResult of
mrOk:
Begin
ShowMessage(TaskDialog.InputText;);
end;
End;
end);
Now the code above always showed empty string, no matter what I wrote in.
Then I checked the ModalResult :
ShowMessage(IntToStr(ModalResult)); -> this returned 1, so it seems it never entered although the only button was OK on the dialog.
Then I ommited the whole Modal result check:
TaskDialog.Execute(
procedure(ModalResult: TModalResult)
begin
ShowMessage(TaskDialog.InputText;);
end
);
This gave me empty string again.
So to summarize, TTMSFNCTaskDialog didn't give me back neither the ModalResult, nor the input text.
What should I do?
Thank you!