Code example for PendingIntent

Methods: send

0
        @Override 
        public void onClick(DialogInterface dialogInterface, int i) {
            try { 
                if (intent != null) {
                    try { 
                        intent.send();
                    } catch (PendingIntent.CanceledException ex) {
                        Log.e(LOG_TAG, "button intent failed", ex);
                    } 
                } 
            } finally { 
                dialogInterface.dismiss();
            } 
        } 
    } 
}