title: Delphi Non-Blocking MessageDialog Example How?
body: <p>I have problem using FMX.Platform.IFMXDialogServiceAsync</p>
  
  <p>This is my procedure:</p>
  
  <pre><code>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;
  </code></pre>
  
  <p>Below is Error that Pop-up:</p>
  
  <pre><code>Access violation at address
  A29FC4F2, accessing address
  00000000.
  </code></pre>
  
  <p>Tried directly into Android Device and Error show whenever this procedure triggered. Looked to Embarcadero Documentation but they didn't provide an example for this.</p>
  
  <p>Someone written some example that I use above
  <a href="http://c2design5sh.blogspot.co.id/2016/05/rad-studio-dx-101-berlin-dialog-api.html" rel="nofollow noreferrer">http://c2design5sh.blogspot.co.id/2016/05/rad-studio-dx-101-berlin-dialog-api.html</a></p>
  
  <p>Is there anyone can tell on how to do new way MessageDialog in Android?, because I found MessageDlg going deprecated.</p>