Write to SD card in Android 4.4.x

Is it possible to modify the source code so that ODK can write to the SD
card in Android 4.4.x (Kit Kat)?

Phone model: Sony Xperia 1e
Android 4.4.2
running a modified version of ODK Collect 1031

getExternalStorageDirectory() apparently returns the internal memory, since
the odk folder is found there, and it cannot be moved or set to the SD
Card.

The problem of writing to the internal memory also happened on an Asus
running 4.4.x. It has not happened on any other device we've that had the
same version of Collect installed.

Contributed code to do that would be welcome.

There needs to be some clean-up of the code to consolidate the construction
of file paths into one function.

The selected location would need to be stored in the Shared Preferences,
which could cause issues when moving data between systems. Ideally, the
full paths now stored in the database would be converted to partial paths
appended to whatever location a user has selected.

ยทยทยท On Sun, Mar 1, 2015 at 6:44 PM, Luke MacDonald wrote:

Is it possible to modify the source code so that ODK can write to the SD
card in Android 4.4.x (Kit Kat)?

Phone model: Sony Xperia 1e
Android 4.4.2
running a modified version of ODK Collect 1031

getExternalStorageDirectory() apparently returns the internal memory,
since the odk folder is found there, and it cannot be moved or set to the
SD Card.

The problem of writing to the internal memory also happened on an Asus
running 4.4.x. It has not happened on any other device we've that had the
same version of Collect installed.

--

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