title: How to detect "Allow only while using the app" permission when user give location permission
body: <p>This is a basic question but I not find a solution for this scenario. I used &quot;Dexter&quot; library to ask for runtime permissions. I need to get background location permission so that I ask for permission , then I saw in Android Q there is an option &quot;Allow only while using the app&quot; , but while using dexter I'm unable to detect when user choose this option. Can anyone help me how I solve this condition?</p>