No need to allocate `String` objects for `setPositiveButton()`, it also takes `int textId` as a parameter, so you can directly pass `R.string.yes`. Same goes for the `setNegativeButton()` method.