FMX.Platform.IFMXDialogServiceAsync の使用に問題があります
これは私の手順です:
procedure TFormMain.btnLogoutClick(Sender: TObject);
var
ASyncService : IFMXDialogServiceASync;
begin
ASyncService.MessageDialogAsync('Do you want to logout?', TMsgDlgType.mtInformation,
[System.UITypes.TMsgDlgBtn.mbYes, System.UITypes.TMsgDlgBtn.mbNo],
TMsgDlgBtn.mbNo,
0,
procedure(const AResult: TModalResult)
begin
case AResult of
mrYes:
begin
Close;
end;
mrNo:
begin
// pressed no
end;
end;
end
);
end;
以下はポップアップするエラーです:
Access violation at address
A29FC4F2, accessing address
00000000.
この手順がトリガーされるたびに、Android デバイスとエラーを直接表示しようとしました。Embarcadero Documentation を参照しましたが、この例は提供されていません。
上記で使用する例を誰かが書いています http://c2design5sh.blogspot.co.id/2016/05/rad-studio-dx-101-berlin-dialog-api.html
AndroidでMessageDialogの新しい方法を実行する方法を教えてくれる人はいますか?