project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Utils.java
equal
deleted
inserted
replaced
25 import java.io.IOException; |
25 import java.io.IOException; |
26 import java.io.InputStream; |
26 import java.io.InputStream; |
27 import java.util.ArrayList; |
27 import java.util.ArrayList; |
28 import java.util.List; |
28 import java.util.List; |
29 |
29 |
|
30 import android.annotation.TargetApi; |
30 import android.content.Context; |
31 import android.content.Context; |
31 import android.content.res.TypedArray; |
32 import android.content.res.TypedArray; |
32 import android.os.Build; |
33 import android.os.Build; |
33 import android.os.Environment; |
34 import android.os.Environment; |
34 import android.util.Log; |
35 import android.util.Log; |
52 |
53 |
53 public static String getDataPath(Context c){ |
54 public static String getDataPath(Context c){ |
54 return getCachePath(c) + ROOT_DIR; |
55 return getCachePath(c) + ROOT_DIR; |
55 } |
56 } |
56 |
57 |
|
58 @TargetApi(8) |
57 static class FroyoSDCardDir{ |
59 static class FroyoSDCardDir{ |
58 public static String getDownloadPath(Context c){ |
60 public static String getDownloadPath(Context c){ |
59 File f = c.getExternalCacheDir(); |
61 File f = c.getExternalCacheDir(); |
60 if(f != null){ |
62 if(f != null){ |
61 return f.getAbsolutePath(); |
63 return f.getAbsolutePath(); |