I am getting
open failed: EACCES (Permission denied)
EACCES (Permission denied)
on the line OutputStream myOutput = new FileOutputStream
OutputStream myOutput = new FileOutputStream
Add android:requestLegacyExternalStorage="true" to the Android Manifest It's worked with Android 10 (Q) at SDK 29+ or After migrating Android X.