project_files/Android-build/SDL-android-project/src/org/hedgewars/mobile/DownloadService.java
equal
deleted
inserted
replaced
160 } |
160 } |
161 } |
161 } |
162 public static String getDownloadPath(Context c){ |
162 public static String getDownloadPath(Context c){ |
163 File f = c.getExternalCacheDir(); |
163 File f = c.getExternalCacheDir(); |
164 if(f != null){ |
164 if(f != null){ |
165 return f.getAbsolutePath(); |
165 return f.getAbsolutePath() + '/'; |
166 }else{ |
166 }else{ |
167 Toast.makeText(c, R.string.sdcard_not_mounted, Toast.LENGTH_LONG); |
167 Toast.makeText(c, R.string.sdcard_not_mounted, Toast.LENGTH_LONG); |
168 return null; |
168 return null; |
169 } |
169 } |
170 } |
170 } |