project_files/Android-build/SDL-android-project/src/org/hedgewars/mobile/DownloadService.java
branchhedgeroid
changeset 5406 a3f98a8a0b80
parent 5397 4ae1b082e4ba
equal deleted inserted replaced
5403:eae5ddde962a 5406:a3f98a8a0b80
   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 	}