From 0b075eb60e5d1a75991cac5cb4e9ed977b204b07 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Mon, 5 May 2014 22:48:53 +0200 Subject: [PATCH] Removed unneeded create directory code in Java. This was actually fixed by adding the WRITE_EXTERNAL_STORAGE permission. --- src/com/nutomic/syncthingandroid/MainActivity.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/com/nutomic/syncthingandroid/MainActivity.java b/src/com/nutomic/syncthingandroid/MainActivity.java index 0d11ed0c..4e77a407 100644 --- a/src/com/nutomic/syncthingandroid/MainActivity.java +++ b/src/com/nutomic/syncthingandroid/MainActivity.java @@ -2,25 +2,13 @@ package com.nutomic.syncthingandroid; import android.app.Activity; import android.os.Bundle; -import android.os.Environment; -import android.util.Log; - -import java.io.File; public class MainActivity extends Activity { private static final String TAG = "MainActivity"; - private static final File SYNCTHING_FOLDER = - new File(Environment.getExternalStorageDirectory(), "syncthing"); - @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - if (!SYNCTHING_FOLDER.isDirectory() && !SYNCTHING_FOLDER.mkdir()) { - Log.w(TAG, "Failed to create syncthing folder on sdcard, exiting"); - finish(); - return; - } System.loadLibrary("syncthing"); }