Android allows you to cancel most dialogs by closing them with the back button, but many of the dialogs in the OS still have a dedicated Cancel button. Example:

Is it always appropriate to have such a button? It looks fine to me, but one could argue that it is a bit redundant and clutters space if a dialog has three buttons (cancel, action #1, action #2).