Getting ODK Collect to save to an SD card

Hi all,

I have ODK Collect installed and working well on a Samsung Galaxy S4, Android version 4.4.2. By default, ODK put its folders onto the device storage (/storage/emulated/0/odk). How can I re-direct it so that it saves the instances, photos, etc. to the SD card instead?

thanks for the help,

Chris

I don't understand the question. ODK Collect does write the data to the
sdcard.

On a tablet, the SDCard is built-in and is a predefined portion of the
entire storage available on the device.

Some tablets have removable SDCards. These would require custom code
changes to use, unless there is an Android setting that allows you to use
the removable card as if it were the internal SDCard, or to mount it as a
mount point on the internal SDCard (e.g., by mounting it as
/storage/emulated/0/odk ).

If you do want to change where ODK Collect accesses its data, the code line
to change is here:

http://code.google.com/p/opendatakit/source/browse/src/org/odk/collect/android/application/Collect.java?repo=collect#48

··· On Wed, May 7, 2014 at 6:46 AM, Chris wrote:

Hi all,

I have ODK Collect installed and working well on a Samsung Galaxy S4,
Android version 4.4.2. By default, ODK put its folders onto the device
storage (/storage/emulated/0/odk). How can I re-direct it so that it saves
the instances, photos, etc. to the SD card instead?

thanks for the help,

Chris

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Thanks Mitch,

I guess I hadn't understood the set-up of the device memory properly. Yes, I was hoping to redirect ODK to store onto the removable SD card. The reason for this is that it's storage capacity is far greater than the built-in card.

You did answer my question, though, so thank you.

cheers,
Chris

··· On Wednesday, May 7, 2014 10:22:33 AM UTC-7, Mitch Sundt wrote: > I don't understand the question. ODK Collect does write the data to the sdcard. > > On a tablet, the SDCard is built-in and is a predefined portion of the entire storage available on the device. > > > Some tablets have removable SDCards. These would require custom code changes to use, unless there is an Android setting that allows you to use the removable card as if it were the internal SDCard, or to mount it as a mount point on the internal SDCard (e.g., by mounting it as /storage/emulated/0/odk ). > > > If you do want to change where ODK Collect accesses its data, the code line to change is here: > > http://code.google.com/p/opendatakit/source/browse/src/org/odk/collect/android/application/Collect.java?repo=collect#48 > > > > > > On Wed, May 7, 2014 at 6:46 AM, Chris wrote: > > Hi all, > > > > I have ODK Collect installed and working well on a Samsung Galaxy S4, Android version 4.4.2. By default, ODK put its folders onto the device storage (/storage/emulated/0/odk). How can I re-direct it so that it saves the instances, photos, etc. to the SD card instead? > > > > > thanks for the help, > > > > Chris > > > > -- > > -- > > Post: opend...@googlegroups.com > > Unsubscribe: opendatakit...@googlegroups.com > > Options: http://groups.google.com/group/opendatakit?hl=en > > > > --- > > You received this message because you are subscribed to the Google Groups "ODK Community" group. > > To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit...@googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. > > > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com

Hi Chris,

ODK Collect saves to whatever directory that the device reports when
we call getExternalStorageDirectory(). On most Android devices, that
is the removable SD card. On some Samsung devices, it's a folder on
the internal SD card.

I'm sure Samsung has their reasons, but it's unfortunate that they
decided to go against what most Android devices do. It's hard to write
generic code that reliably writes to the removable SD card, so I don't
think there will be a fix in ODK Collect any time soon.

Yaw

··· On Wed, May 7, 2014 at 3:14 PM, wrote: > Thanks Mitch, > > I guess I hadn't understood the set-up of the device memory properly. Yes, I was hoping to redirect ODK to store onto the removable SD card. The reason for this is that it's storage capacity is far greater than the built-in card. > > You did answer my question, though, so thank you. > > cheers, > Chris > > On Wednesday, May 7, 2014 10:22:33 AM UTC-7, Mitch Sundt wrote: >> I don't understand the question. ODK Collect does write the data to the sdcard. >> >> On a tablet, the SDCard is built-in and is a predefined portion of the entire storage available on the device. >> >> >> Some tablets have removable SDCards. These would require custom code changes to use, unless there is an Android setting that allows you to use the removable card as if it were the internal SDCard, or to mount it as a mount point on the internal SDCard (e.g., by mounting it as /storage/emulated/0/odk ). >> >> >> If you do want to change where ODK Collect accesses its data, the code line to change is here: >> >> http://code.google.com/p/opendatakit/source/browse/src/org/odk/collect/android/application/Collect.java?repo=collect#48 >> >> >> >> >> >> On Wed, May 7, 2014 at 6:46 AM, Chris wrote: >> >> Hi all, >> >> >> >> I have ODK Collect installed and working well on a Samsung Galaxy S4, Android version 4.4.2. By default, ODK put its folders onto the device storage (/storage/emulated/0/odk). How can I re-direct it so that it saves the instances, photos, etc. to the SD card instead? >> >> >> >> >> thanks for the help, >> >> >> >> Chris >> >> >> >> -- >> >> -- >> >> Post: opend...@googlegroups.com >> >> Unsubscribe: opendatakit...@googlegroups.com >> >> Options: http://groups.google.com/group/opendatakit?hl=en >> >> >> >> --- >> >> You received this message because you are subscribed to the Google Groups "ODK Community" group. >> >> To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit...@googlegroups.com. >> >> For more options, visit https://groups.google.com/d/optout. >> >> >> >> >> -- >> Mitch Sundt >> Software Engineer >> University of Washington >> mitche...@gmail.com > > -- > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en > > --- > You received this message because you are subscribed to the Google Groups "ODK Community" group. > To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit+unsubscribe@googlegroups.com. > For more options, visit https://groups.google.com/d/optout.