A tutorial for setting up OpenCV 4.12.0 (and other 4.x.y versions) for Android in Android Studio with Native Development Kit (NDK) support. Android NDK enables you to implement your OpenCV image ...
You can take a look at the MainActivity.java from the sample module for examples on how to create the dialogs.