This is an example of using afollestad/material-dialogs from Java. material-dialogs was shifted to Kotlin in version 2.0. Kotlin and Java are interchangeable, so you can also call them from Java.