Code example for AlertDialog

Methods: cancel

0
     
    public void endTagWriting() 
    { 
        if (mWriteTagDialog != null)
        { 
            mWriteTagDialog.cancel();
        } 
        disableTagWriteMode(); 
    } 
 
    private void enableTagWriteMode(IntentFilter[] writeTagFilters,
            PendingIntent pendingIntent)
    { 
        Log.d(TAG, "enable write mode");
        mNfcAdapter.enableForegroundDispatch(context, pendingIntent,
                writeTagFilters, null);
    } 
 
    private void disableTagWriteMode() 
    { 
        Log.d(TAG, "disable write mode");