With this I got the same error. Here the snippet: ...
# android
m
With this I got the same error. Here the snippet:
Copy code
if(ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)
                == PackageManager.PERMISSION_DENIED) {
            //todo get permission
        }