A simple demo that shows how to request runtime permissions in Android. This code is related to the following post. The Kotlin version is available here.