I'm trying to get the users permission in android to write and read to the calendar. However I get an error on the following code:
if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_CALENDAR) != PackageManager.PERMISSION_GRANTED) {
ActivityCompat.requestPermissions( this, new String[] { Manifest.permission.READ_CALENDAR },
MY_PERMISSIONS_REQUEST_READ_CALENDAR);
}
It says: can not resolve symbol MY_PERMISSIONS_REQUEST_READ_CALENDAR. I can't quite figure out what it's supposed to be.