Java tutorial
//package com.java2s; import android.content.Context; import android.support.annotation.NonNull; public class Main { /** * Get the folder where temporary files from the camera are stored. * * @return The temp folder. */ @NonNull public static File getTempCameraFolder(final Context c) { File result = new File(c.getExternalCacheDir(), "Camera"); if (!result.exists()) { //noinspection ResultOfMethodCallIgnored result.mkdirs(); } return result; } }