Commit 936abae8 authored by Thomas Krex's avatar Thomas Krex

Update DownloadService.java

link für bessere Datenverwaltung hinzugefügt
parent 2ebf2bec
...@@ -68,6 +68,7 @@ public class DownloadService extends IntentService { ...@@ -68,6 +68,7 @@ public class DownloadService extends IntentService {
Log.d("Donwload Service", "filelength: " + fileLength); Log.d("Donwload Service", "filelength: " + fileLength);
// download the file // download the file
// link for better file strorage https://www.grokkingandroid.com/how-to-correctly-store-app-specific-files-in-android/
File root = android.os.Environment.getExternalStorageDirectory(); File root = android.os.Environment.getExternalStorageDirectory();
dir = new File(root.getAbsolutePath() + "/ttt"); dir = new File(root.getAbsolutePath() + "/ttt");
if (dir.exists() == false) { if (dir.exists() == false) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment