You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Device type: Android with version 10 and 11
OS version: Android 10 and Android 11
EasyPermissions version: 3.0.0
Describe the problem
AppSettings dialog need onActivityResult for Appsettings dialog callback. And for this case, onActivityResult is deprecated on latest Android X Appcompat activity version.
@GulajavaMinistudio onRequestPermissionsResult also deprecated and I am also waiting for new version , if you found something please write down below so it will be helpful for me
Thanks :)
and your launcher in your activity or fragment would look like this:
private final ActivityResultLauncher<Intent> appSettingsDialogLauncher = registerForActivityResult(new ActivityResultContracts.StartActivityForResult(), result -> {
// handle result here
});
Basic Information
Device type: Android with version 10 and 11
OS version: Android 10 and Android 11
EasyPermissions version: 3.0.0
Describe the problem
AppSettings dialog need onActivityResult for Appsettings dialog callback. And for this case, onActivityResult is deprecated on latest Android X Appcompat activity version.
https://stackoverflow.com/questions/62671106/onactivityresult-method-is-deprecated-what-is-the-alternative
https://developer.android.com/training/basics/intents/result
The text was updated successfully, but these errors were encountered: