Update to androidx.fragment:fragment:1.3.0-alpha08: registerForActivityResult not allowed after onCreate anymore. How to use after onCreate?

It just means that you shouldn’t register the callback after onCreate(). So you can do this private val checkPermission = registerForActivityResult(ActivityResultContracts.RequestMultiplePermissions()) { … } and then launch the check anytime you need it checkPermission.launch(array-of-permissions) The reason: When starting an activity for a result, it is possible (and, in cases of memory-intensive operations such as camera … Read more