Closed loihd closed 6 years ago
@loihd this mentions AppSettingsDialogHolderActivity
which is not part of the standard flow and only launches when you use the "permissions permanently denied" flow and redirect the user to settings. Can you show the code that launches it?
I didn't launch it. My app only asks for access contacts permission. You can see in the code that I mentioned above. It must call the getPhones()
function instead of asking for the permission since this device is Android 4.3.1. It's weird.
You're on Android 4.3.1? It shouldn't request permissions at all before Android 6.0... where else are you calling EP APIs?
I only asked the permission with the code above. Nothing else. Crashlytics reported this issue. This device is rooted. But we should prevent the crash issue. You can see the screenshot here: crashlytics
Oh, yeah, I don't think we can do anything about that. @samtstern?
Yeah @loihd unfortunately there's nothing we can really do for an OS that old on a rooted device.
In your case you may want to try just using the raw Android permissions API to try and get more contro.
Same crash but on Nexus 4 with Android 6.0.1.
Caused by java.lang.NullPointerException: Attempt to invoke direct method 'void pub.devrel.easypermissions.b.a(java.lang.Object)' on a null object reference
at pub.devrel.easypermissions.AppSettingsDialog.fromIntent(Unknown Source)
at pub.devrel.easypermissions.AppSettingsDialogHolderActivity.onCreate(Unknown Source)
at android.app.Activity.performCreate(Activity.java:6280)
Crash point is here.
It seems because the intent doesn't have dialog
extra. But after I check the source code, this intent is guaranteed to have that extra.
It's weird.
Same crash but on Nexus 4 with Android 6.0.1.
Same crash but on CAM-TL00 with Android 6.0
Basic Information
Device type: Defy Mini OS version: 4.3.1 EasyPermissions version: 1.2.0
Describe the problem
Crashlytics reported this issue. Please take a look
Code and logs
Code
Logs