Android examples for android.os:External Storage
get External Files Directory For Dcim
import java.io.File; import android.annotation.TargetApi; import android.content.Context; import android.os.Build; import android.os.Environment; public class Main { @TargetApi(Build.VERSION_CODES.FROYO)//from w w w. ja v a 2 s . c o m public static final File getExternalFilesDirForDcim(Context context) { return context.getExternalFilesDir(Environment.DIRECTORY_DCIM); } }