With an EasyPermissions.requestPermissions() call, if the user presses the phone's HOME button instead of continuing on the initial message prompt, or during the system prompt to grant or refuse the permission, the onRequestPermissionResult() is never called, and also there is no call to onActivityResult(), so the activity waits in background forever for this result. I need to finish() this unnecessary activity (else much later it may cause an ANR), but there is no way of knowing what happened.
With an EasyPermissions.requestPermissions() call, if the user presses the phone's HOME button instead of continuing on the initial message prompt, or during the system prompt to grant or refuse the permission, the onRequestPermissionResult() is never called, and also there is no call to onActivityResult(), so the activity waits in background forever for this result. I need to finish() this unnecessary activity (else much later it may cause an ANR), but there is no way of knowing what happened.