To add an icon to the dialog, use the setIcon() method. The following is an example:
.setIcon(R.mipmap.ic_launcher)
Introduced in Android 4.3, the mipmap folder is a drawable folder for storing bitmaps that should not be modified/converted during APK optimization. This is the recommended location for storing app icons so the launcher can have the best available image when displaying the app icon.