title: Version 23 permission checking
body: <p>I'm asking for permission to use maps with this code . . .</p>
  
  <pre><code>    permissionCheck = ContextCompat.checkSelfPermission(this,
              android.Manifest.permission.ACCESS_FINE_LOCATION);
      if (!(permissionCheck == PackageManager.PERMISSION_GRANTED))
      {
          ActivityCompat.requestPermissions(this,
          new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},
                  PERMISSION_TO_USE_LOCATIONMANAGER);
      }
  </code></pre>
  
  <p>That works ok but my problem is that there are 19 places in my app where I reference map related objects and the compiler flags every one of them.  The way I am addressing this issue is to wrap each and every reference in similar code ...</p>
  
  <pre><code>   public void onPause() {
  
          permissionCheck = ContextCompat.checkSelfPermission(this,
                  android.Manifest.permission.ACCESS_FINE_LOCATION);
          if (permissionCheck == PackageManager.PERMISSION_GRANTED)
          {
              PSLocManager.removeUpdates(PSLocListener);
          }
      super.onPause();
  
      }
  </code></pre>
  
  <p>This all works ok but is it necessary to do this in this way?  It's a lot of code.
  Thanks,
  Dean</p>