title: What is difference between ` DialogInterface.dismiss()` and `DialogInterface.cancel()`?
body: <p>While working with dialogs in android one can cancel it or dismiss it, But when to use dismiss and when to use cancel? what is the difference between them? Thanks in advance.</p>