title: Can't resolve symbol 'thisActivity'
body: <p>I'm a new android developer.  I'm trying to get my app to check permissions and I found this bit of code <a href="https://developer.android.com/training/permissions/requesting.html" rel="nofollow noreferrer">here</a> </p>
  
  <pre><code>int permissionCheck = ContextCompat.checkSelfPermission(thisActivity,
              Manifest.permission.ACCESS_NOTIFICATION_POLICY);
  </code></pre>
  
  <p>The problem I'm having is that <code>thisActivity</code>is showing up with the error <code>"Can't resolve symbol 'thisActivity'</code>.</p>