Code example for JsResult

Methods: cancel

0
    dialog.setButton( DialogInterface.BUTTON_NEGATIVE,
                      context.getResources().getString( android.R.string.cancel ),
                      new DialogInterface.OnClickListener() {
 
                        public void onClick( DialogInterface dialog, int which ) {
                          result.cancel();
                        } 
                      } ); 
    dialog.show();
    return true; 
  } 
 
  private Dialog createNeutralDialog( String url, String message, final JsResult result ) {
    Dialog dialog = createNewDialog();
    if( url.startsWith( HTTP ) ) {
      url = url.substring( 7, url.length() );
    } 
    dialog.setTitle( url );
    dialog.setMessage( message );
    dialog.setButton( DialogInterface.BUTTON_NEUTRAL,
Stop searching for code, let great code find you!  Add Codota to your java IDE