Odk 2.0 database naming structure and storage location on android device

Can you explain or point me to the parts of the code or any docs to look at to determine how the database(s) are named and where they will be stored on the device?

What is the psuedocode to determine where and what databases exist?

Is there 1 database per tables app?

Basically - what is the overall architecture for what and where the databases are so that I can discover this programatically on a device running tables/Survey ?

For example if I look on my device with my tables app I see the db under a subfolder of webdb with a name like 00000000001 or similar - how can I determine that file location and that name if I were to not know them and want to discover programatically?

Thanks,
tom

This has changed between rev 126 and the development tip.

The old naming was driven by an early requirement to leverage the W3SQL
database used within the embedded webkit. Prior to rev 126, we changed the
database interactions to call native Java code on the device. This has
allowed us to simplify the construction at the development tip.

The development tip always places the database here:

.../opendatakit/user-app-name/data/webDb/sqlite.db

'user-app-name' is the user's application name. This is 'survey' if you
just launch ODK Survey, or 'tables' if you just launch ODK Tables. But you
can Force Close all the tools then rename that directory to a name of your
choice, then create a Widget that opens that user-app-name directory. This
allows multiple user-app-name suites to co-exist on the device.

ยทยทยท On Wed, Aug 12, 2015 at 6:02 AM, <7shriner@gmail.com> wrote:

Can you explain or point me to the parts of the code or any docs to look
at to determine how the database(s) are named and where they will be stored
on the device?

What is the psuedocode to determine where and what databases exist?

Is there 1 database per tables app?

Basically - what is the overall architecture for what and where the
databases are so that I can discover this programatically on a device
running tables/Survey ?

For example if I look on my device with my tables app I see the db under a
subfolder of webdb with a name like 00000000001 or similar - how can I
determine that file location and that name if I were to not know them and
want to discover programatically?

Thanks,
tom

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

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