public void showUntrustedCertDialog(X509Certificate x509Certificate,SslError error,SslErrorHandler handler){
  SslUntrustedCertDialog dialog;
  if (x509Certificate == null) {
    dialog=SslUntrustedCertDialog.newInstanceForEmptySslError(error,handler);
  }
 else {
    dialog=SslUntrustedCertDialog.newInstanceForFullSslError(x509Certificate,error,handler);
  }
  FragmentManager fm=getSupportFragmentManager();
  FragmentTransaction ft=fm.beginTransaction();
  ft.addToBackStack(null);
  dialog.show(ft,UNTRUSTED_CERT_DIALOG_TAG);
}

public void showUntrustedCertDialog ( X509Certificate x509Certificate , SslError error , SslErrorHandler handler ) { SslUntrustedCertDialog dialog ; if ( x509Certificate == null ) { dialog = SslUntrustedCertDialog . newInstanceForEmptySslError ( error , handler ) ; } else { dialog = SslUntrustedCertDialog . newInstanceForFullSslError ( x509Certificate , error , handler ) ; } FragmentManager fm = getSupportFragmentManager ( ) ; FragmentTransaction ft = fm . beginTransaction ( ) ; ft . addToBackStack ( null ) ; dialog . show ( ft , UNTRUSTED_CERT_DIALOG_TAG ) ; }
show untrusted cert dialog
