When I stick USB into the computer 2 units is shown Unit F: and unit G:
I tried to set the path in sourcecode to mnt/extsd (in file manager folder
sdcard is shown with this path)
using:
public class Collect extends Application {
// This is the default code for saving on Device's memory
public static final String ODK_ROOT =
Environment.getExternalStorageDirectory() + File.separator + "odk";
public static final String FORMS_PATH = ODK_ROOT + File.separator +
"forms";
public static final String INSTANCES_PATH = ODK_ROOT + File.separator +
"instances";
public static final String CACHE_PATH = ODK_ROOT + File.separator +
".cache";
public static final String METADATA_PATH = ODK_ROOT + File.separator +
"metadata";
public static final String TMPFILE_PATH = CACHE_PATH + File.separator +
"tmp.jpg";
}
···
____________________________________________________________________________________________________
public class Collect extends Application {
// This is the update I made, however it still saves on device's memory
but it creates
public static final String ODK_ROOT =
Environment.getExternalStorageDirectory() + File.separator + "mnt"
- File.separator + "extsd" + File.separator +"odk";
public static final String FORMS_PATH = ODK_ROOT + File.separator +
"forms";
public static final String INSTANCES_PATH = ODK_ROOT + File.separator +
"instances";
public static final String CACHE_PATH = ODK_ROOT + File.separator +
".cache";
public static final String METADATA_PATH = ODK_ROOT + File.separator +
"metadata";
public static final String TMPFILE_PATH = CACHE_PATH + File.separator +
"tmp.jpg";
}
So, what should I do for it recognize SDcard as the default storage path??
I use a china Tablet Genesis gt-7200
You are correct that changing ODK_ROOT should change ODK Collect to use
the alternate path for all storage.
Otherwise, I have no idea. This is a generic Android question or a question
specific to your tablet.
Searching stackoverflow.com or other sites may provide a solution.
Mitch
···
On Wed, Jul 25, 2012 at 12:17 PM, anderson cleyton < andersoncleytonalveslopes@gmail.com> wrote:
When I stick USB into the computer 2 units is shown Unit F: and unit G:
I tried to set the path in sourcecode to mnt/extsd (in file manager folder
sdcard is shown with this path)
using:
public class Collect extends Application {
// This is the default code for saving on Device's memory
public static final String ODK_ROOT =
Environment.getExternalStorageDirectory() + File.separator + "odk";
public static final String FORMS_PATH = ODK_ROOT + File.separator +
"forms";
public static final String INSTANCES_PATH = ODK_ROOT + File.separator
- "instances";
public static final String CACHE_PATH = ODK_ROOT + File.separator +
".cache";
public static final String METADATA_PATH = ODK_ROOT + File.separator +
"metadata";
public static final String TMPFILE_PATH = CACHE_PATH + File.separator
- "tmp.jpg";
}
public class Collect extends Application {
// This is the update I made, however it still saves on device's
memory but it creates
public static final String ODK_ROOT =
Environment.getExternalStorageDirectory() + File.separator + "mnt"
- File.separator + "extsd" + File.separator +"odk";
public static final String FORMS_PATH = ODK_ROOT + File.separator +
"forms";
public static final String INSTANCES_PATH = ODK_ROOT + File.separator
- "instances";
public static final String CACHE_PATH = ODK_ROOT + File.separator +
".cache";
public static final String METADATA_PATH = ODK_ROOT + File.separator +
"metadata";
public static final String TMPFILE_PATH = CACHE_PATH + File.separator
- "tmp.jpg";
}
So, what should I do for it recognize SDcard as the default storage path??
I use a china Tablet Genesis gt-7200
--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com