How to find programatically selected option for the microphone permission is "Ask Every Time" (Only this time)?
int permissionCheck = ContextCompat.checkSelfPermission(thisActivity, Manifest.permission.RECORD_AUDIO);
Above code will return true if permission granted with "Allow only while using the app" or "Ask Every Time" (Only this time).
But I wanted to differentiate above two type of permission.
[Update] Use case :- If application granted with "One time permission" and moving application to background for more than 20 seconds results one time permission is revoked. Once permission revoked application restarts the activity. So, I wanted to give alert (toast or dialog) when user selected one time permission.