aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/utils
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2014-04-01 08:31:00 +0200
committerSamuel Tardieu <sam@rfc1149.net>2014-04-01 08:48:33 +0200
commit11d49a5a42dedf0821f16aa030bd0e7e27c9bc03 (patch)
tree68af086740e6b366327e5888fa85d9ec9531cfd1 /main/src/cgeo/geocaching/utils
parent3ef2ff5d3c04ca8b7178b1ee34dae4d2979bde01 (diff)
downloadcgeo-11d49a5a42dedf0821f16aa030bd0e7e27c9bc03.zip
cgeo-11d49a5a42dedf0821f16aa030bd0e7e27c9bc03.tar.gz
cgeo-11d49a5a42dedf0821f16aa030bd0e7e27c9bc03.tar.bz2
Remove compatibility with API < 8
Diffstat (limited to 'main/src/cgeo/geocaching/utils')
-rw-r--r--main/src/cgeo/geocaching/utils/ImageUtils.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/cgeo/geocaching/utils/ImageUtils.java b/main/src/cgeo/geocaching/utils/ImageUtils.java
index eb91724..671ded9 100644
--- a/main/src/cgeo/geocaching/utils/ImageUtils.java
+++ b/main/src/cgeo/geocaching/utils/ImageUtils.java
@@ -15,6 +15,7 @@ import android.graphics.Rect;
import android.graphics.drawable.BitmapDrawable;
import android.media.ExifInterface;
import android.net.Uri;
+import android.os.Environment;
import java.io.BufferedOutputStream;
import java.io.File;
@@ -200,8 +201,8 @@ public final class ImageUtils {
public static File getOutputImageFile() {
// To be safe, you should check that the SDCard is mounted
// using Environment.getExternalStorageState() before doing this.
+ final File mediaStorageDir = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES), "cgeo");
- File mediaStorageDir = new File(Compatibility.getExternalPictureDir(), "cgeo");
// This location works best if you want the created images to be shared
// between applications and persist after your app has been uninstalled.