Calling an ODK Survey form from Chrome +

Hi Guys,

How easy would it be to directly call the forms menu / or an individual
form from chrome - and can the form be completed / finalised by this
approach.?

Sorry - I also have a second question

Is there anyway to call the sending of finalised forms other that through
multiple menu selections ( I know Tables will do away with all that - but
I guess the production version is some way off )

Many thanks

John

Are you asking about the ODK 2.0 tools, or ODK Collect?

We haven't played around with Chrome on the android device, so I don't know
what capabilities it has for invoking arbitrary applications via an Intent
call.

If it can launch an arbitrary app, it could launch ODK Collect or ODK
Survey on a particular form or instance. However, I think it needs to use
a URL for the launching, and Android needs to know that this URL is
processed by the ODK tools. That may work for the tools, for launching a
new instance or existing instance of a particular form, but we have not
specifically tested it.

For ODK Collect, if it did work, the URL would look like:

content://org.odk.collect.android.provider.odk.forms/forms/NNNN -- will
launch into a new instance of that form.
content://org.odk.collect.android.provider.odk.instances/instances/NNNN
-- will launch into editing a particular instance of a form.

NNNN is a numeric value that will be different on different devices, as it
depends upon the number of create/delete actions performed on the device.

You could open the SQLite database at /sdcard/odk/metadata/forms.db or
/sdcard/odk/metadata/instances.db to find out what the NNNN should be (the
_ID column).

For ODK Survey, if it did work, the URL would look like:

content://org.opendatakit.common.android.provider.forms/appName -- to
launch ODK Survey (where, e.g., appName == survey )

content://org.opendatakit.common.android.provider.forms/appName/formId --
to launch ODK Survey on a particular formId

At this time, other intent arguments are used to launch into a specific
instance and onto a specific page within the form.

c

ยทยทยท On Tue, Nov 25, 2014 at 5:07 AM, John Gillen wrote:

Hi Guys,

How easy would it be to directly call the forms menu / or an individual
form from chrome - and can the form be completed / finalised by this
approach.?

Sorry - I also have a second question

Is there anyway to call the sending of finalised forms other that through
multiple menu selections ( I know Tables will do away with all that - but
I guess the production version is some way off )

Many thanks

John

--
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

2 posts were split to a new topic: Launching Collect from a browser