Permission request, there is a 'standard' way to obtain different permissions?

I'm trying to understand if there is a fragment of standard code that can be used on different Android versions, at least from 6 to 10, which allows you to automatically obtain the necessary permissions for the app to work properly
Can you indicate a snippet of code to use when starting the app?
Are there any priorities for requesting permits (for example, you must first ask ACCESS_FINE_LOCATION and then READ_PHONE_NUMBERS)?

  1. You should only really request permissions if they are required in your app, and not have a blanket approach
  2. Use the permissions blocks in the Screen palette to request individual permissions
2 Likes