Quantcast
Channel: Android Mode - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 941

Getting an Access error with PrintWriter

$
0
0

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?


Viewing all articles
Browse latest Browse all 941

Trending Articles