I have a PrintWriter object named fileOut which I initialize with createWriter("testfile.txt"). I then print to it, flush and close it.
It will not compile, repeatedly giving me two of these errors:
check = ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Manifest.permission.READ_EXTERNAL_STORAGE cannot be resolved
I have both READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE enabled properly.
Anyone experience this before?