Answer the question
In order to leave comments, you need to log in
Writing files in Android KitKat?
I opened my old project, before my application created files in the following way:
final String FilesFolder = Environment.getExternalStorageDirectory().getAbsolutePath()
+ File.separator + "Android" + File.separator + "data" + File.separator
+ this.context.getPackageName() + File.separator + "files" + File.separator;
final File imageFile = new File(FilesFolder + (inputData[0].type == ImageProvider.ImageSizeType.FULLSIZE ?
"images" + File.separator + imgFileName : "image_miniatures" /*+ File.separator*/ + imgFileName));
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
Answer the question
In order to leave comments, you need to log in
Of course, I understand the project is old, but Context.getExternalFilesDir(null)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question