An thing that I've just found about jDialogYN, let me show with some code
procedure TAndroidModule1.DoBar;
begin
DoFoo('yeah');// something that may fail
jDialogYN1.Show
end;
procedure TAndroidModule1.jDialogYN1ClickYN(Sender: TObject; YN: TClickYN);
begin
if YN = clickNo then
DoBar
end;
procedure TAndroidModule1.AndroidModule1JNIPrompt(Sender: TObject);
begin
jDialogYN1.No:= 'No';
jDialogYN1.Yes:= 'Yes';
jDialogYN1.Msg:= 'The application has executed DoFoo?';
jDialogYN1.Title:= 'Foo';
end;
Well, this should create an loop, where DoBar calls DoFoo to do its thing that may fail, and that fail is obvious to the user, and then a dialog shows up asking the user if the operation was done. If it was, the program flow should return to normal, if it wasn't, DoBar is called again.
But I've noticed that, when I try to do it, there is no loop, jDialogYN1 is not showing again? Is that supposed to happens?