title: Android 10 (Q) ACCESS_BACKGROUND_LOCATION permission
body: <p>I need the user to check and set permission to ACCESS_BACKGROUND_LOCATION ("Allow all the time") without the option to "Allow only while using the app". My GPS Tracking app needs to continue accessing location even when the application is minimised.</p>
  
  <p>I have already permissions working for ACCESS_FINE_LOCATION for Android 9.</p>
  
  <pre><code>AndroidManifest.xml---------------------------------------------------&gt;
  
  &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" /&gt;
  </code></pre>
  
  <pre><code>TrackingActivity.java (need to include ACCESS_BACKGROUND_LOCATION)----&gt;
  
  private void permissionCheck1() {
          int permissionCheck1 = ContextCompat.checkSelfPermission(this,
                  Manifest.permission.ACCESS_FINE_LOCATION);
          if (permissionCheck1 != PackageManager.PERMISSION_GRANTED) {
              ActivityCompat.requestPermissions(this,
                      new String[]{Manifest.permission.ACCESS_FINE_LOCATION},
                      MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);
          } else {
              grantedSetupGPSandMap();
          }
  }
  </code></pre>
  
  <p>I need the only permission option to be "Allow all the time" if possible. How do I set this up when checking and setting permissions?</p>