Modifying Collect

You can use a form shortcut to point to an individual form (see
http://groups.google.com/group/opendatakit/msg/612046e08d25c516
) or just change the MainMenu activity to launch a particular form or
build a custom app that launches Collect with that particular form.

You can add an appearance attribute in the form and change
WidgetFactory (see
http://code.google.com/p/opendatakit/source/browse/src/org/odk/collect/android/widgets/WidgetFactory.java?repo=collect)
to branch to your custom widget. If you can have your custom
application return a pointer to Android's media ContentProvider (just
like the Camera app does) that'll be easiest. If not, then you'll have
to to change the code in the FormEntryActivity to do the right thing.
(see http://code.google.com/p/opendatakit/source/browse/src/org/odk/collect/android/activities/FormEntryActivity.java?repo=collect#330
for an example)

··· > We got the source for ODK Collect with the aim of customizing it for data > collection purposes in a project we're working on. What we are trying to do > is integrate an image processing application into the ODK collect tool. We > will then add a button in the image widget to call this application which > will process an image, then ideally attaches the processed image to the > form. > So here's our roadblocks: > > We would like for there to be a landing page in the application with a > button that would load a specific form on click instead of seeing a list of > forms and selecting one. > Implement an if control structure in the image widget which would load a > specific object based on the form that is currently being filled i.e > > if(the_process_image_form_is_currently_being_filled) > { > > //load the image processing button > > } > else > { > //load the normal Capture Image/ Choose Image button > } > > Any pointers on how we can do any of that?

Tha

You can use a form shortcut to point to an individual form (see
http://groups.google.com/group/opendatakit/msg/612046e08d25c516
) or just change the MainMenu activity to launch a particular form or
build a custom app that launches Collect with that particular form.

You can add an appearance attribute in the form and change
WidgetFactory (see
http://code.google.com/p/opendatakit/source/browse/src/org/odk/collect/android/widgets/WidgetFactory.java?repo=collect)
to branch to your custom widget. If you can have your custom
application return a pointer to Android's media ContentProvider (just
like the Camera app does) that'll be easiest. If not, then you'll have
to to change the code in the FormEntryActivity to do the right thing.
(see http://code.google.com/p/opendatakit/source/browse/src/org/odk/collect/android/activities/FormEntryActivity.java?repo=collect#330
for an example)

We got the source for ODK Collect with the aim of customizing it for data
collection purposes in a project we're working on. What we are trying to do
is integrate an image processing application into the ODK collect tool. We
will then add a button in the image widget to call this application which
will process an image, then ideally attaches the processed image to the
form.
So here's our roadblocks:

We would like for there to be a landing page in the application with a
button that would load a specific form on click instead of seeing a list of
forms and selecting one.
Implement an if control structure in the image widget which would load a
specific object based on the form that is currently being filled i.e

if(the_process_image_form_is_currently_being_filled)
{

//load the image processing button

}
else
{
//load the normal Capture Image/ Choose Image button
}

Any pointers on how we can do any of that?

nks

··· On Wednesday, March 28, 2012 3:18:22 AM UTC+3, Yaw Anokwa wrote:

On Wednesday, March 28, 2012 3:18:22 AM UTC+3, Yaw Anokwa wrote:

You can use a form shortcut to point to an individual form (see
http://groups.google.com/group/opendatakit/msg/612046e08d25c516
) or just change the MainMenu activity to launch a particular form or
build a custom app that launches Collect with that particular form.

You can add an appearance attribute in the form and change
WidgetFactory (see
http://code.google.com/p/opendatakit/source/browse/src/org/odk/collect/android/widgets/WidgetFactory.java?repo=collect)
to branch to your custom widget. If you can have your custom
application return a pointer to Android's media ContentProvider (just
like the Camera app does) that'll be easiest. If not, then you'll have
to to change the code in the FormEntryActivity to do the right thing.
(see http://code.google.com/p/opendatakit/source/browse/src/org/odk/collect/android/activities/FormEntryActivity.java?repo=collect#330
for an example)

We got the source for ODK Collect with the aim of customizing it for data
collection purposes in a project we're working on. What we are trying to do
is integrate an image processing application into the ODK collect tool. We
will then add a button in the image widget to call this application which
will process an image, then ideally attaches the processed image to the
form.
So here's our roadblocks:

We would like for there to be a landing page in the application with a
button that would load a specific form on click instead of seeing a list of
forms and selecting one.
Implement an if control structure in the image widget which would load a
specific object based on the form that is currently being filled i.e

if(the_process_image_form_is_currently_being_filled)
{

//load the image processing button

}
else
{
//load the normal Capture Image/ Choose Image button
}

Any pointers on how we can do any of that?

Thanks for the reply. Is the ODK Tables project open source and if it is, may you share a link to the project?

http://code.google.com/p/opendatakit/source/browse?repo=spreadsheet.

··· On Thu, Mar 29, 2012 at 00:53, wrote: > Tha > > On Wednesday, March 28, 2012 3:18:22 AM UTC+3, Yaw Anokwa wrote: >> You can use a form shortcut to point to an individual form (see >> http://groups.google.com/group/opendatakit/msg/612046e08d25c516 >> ) or just change the MainMenu activity to launch a particular form or >> build a custom app that launches Collect with that particular form. >> >> You can add an appearance attribute in the form and change >> WidgetFactory (see >> http://code.google.com/p/opendatakit/source/browse/src/org/odk/collect/android/widgets/WidgetFactory.java?repo=collect) >> to branch to your custom widget. If you can have your custom >> application return a pointer to Android's media ContentProvider (just >> like the Camera app does) that'll be easiest. If not, then you'll have >> to to change the code in the FormEntryActivity to do the right thing. >> (see http://code.google.com/p/opendatakit/source/browse/src/org/odk/collect/android/activities/FormEntryActivity.java?repo=collect#330 >> for an example) >> >> > We got the source for ODK Collect with the aim of customizing it for data >> > collection purposes in a project we're working on. What we are trying to do >> > is integrate an image processing application into the ODK collect tool. We >> > will then add a button in the image widget to call this application which >> > will process an image, then ideally attaches the processed image to the >> > form. >> > So here's our roadblocks: >> > >> > We would like for there to be a landing page in the application with a >> > button that would load a specific form on click instead of seeing a list of >> > forms and selecting one. >> > Implement an if control structure in the image widget which would load a >> > specific object based on the form that is currently being filled i.e >> > >> > if(the_process_image_form_is_currently_being_filled) >> > { >> > >> > //load the image processing button >> > >> > } >> > else >> > { >> > //load the normal Capture Image/ Choose Image button >> > } >> > >> > Any pointers on how we can do any of that? > > nks > > On Wednesday, March 28, 2012 3:18:22 AM UTC+3, Yaw Anokwa wrote: >> You can use a form shortcut to point to an individual form (see >> http://groups.google.com/group/opendatakit/msg/612046e08d25c516 >> ) or just change the MainMenu activity to launch a particular form or >> build a custom app that launches Collect with that particular form. >> >> You can add an appearance attribute in the form and change >> WidgetFactory (see >> http://code.google.com/p/opendatakit/source/browse/src/org/odk/collect/android/widgets/WidgetFactory.java?repo=collect) >> to branch to your custom widget. If you can have your custom >> application return a pointer to Android's media ContentProvider (just >> like the Camera app does) that'll be easiest. If not, then you'll have >> to to change the code in the FormEntryActivity to do the right thing. >> (see http://code.google.com/p/opendatakit/source/browse/src/org/odk/collect/android/activities/FormEntryActivity.java?repo=collect#330 >> for an example) >> >> > We got the source for ODK Collect with the aim of customizing it for data >> > collection purposes in a project we're working on. What we are trying to do >> > is integrate an image processing application into the ODK collect tool. We >> > will then add a button in the image widget to call this application which >> > will process an image, then ideally attaches the processed image to the >> > form. >> > So here's our roadblocks: >> > >> > We would like for there to be a landing page in the application with a >> > button that would load a specific form on click instead of seeing a list of >> > forms and selecting one. >> > Implement an if control structure in the image widget which would load a >> > specific object based on the form that is currently being filled i.e >> > >> > if(the_process_image_form_is_currently_being_filled) >> > { >> > >> > //load the image processing button >> > >> > } >> > else >> > { >> > //load the normal Capture Image/ Choose Image button >> > } >> > >> > Any pointers on how we can do any of that? > > Thanks for the reply. Is the ODK Tables project open source and if it is, may you share a link to the project?

hi
Yaw Anokwa
not working your link

··· On Thursday, March 29, 2012 7:49:59 PM UTC+5:30, Yaw Anokwa wrote: > > http://code.google.com/p/opendatakit/source/browse?repo=spreadsheet. > > On Thu, Mar 29, 2012 at 00:53, <cha...@upande.com > wrote: > > Tha > > > > On Wednesday, March 28, 2012 3:18:22 AM UTC+3, Yaw Anokwa wrote: > >> You can use a form shortcut to point to an individual form (see > >> http://groups.google.com/group/opendatakit/msg/612046e08d25c516 > >> ) or just change the MainMenu activity to launch a particular form or > >> build a custom app that launches Collect with that particular form. > >> > >> You can add an appearance attribute in the form and change > >> WidgetFactory (see > >> > http://code.google.com/p/opendatakit/source/browse/src/org/odk/collect/android/widgets/WidgetFactory.java?repo=collect > ) > >> to branch to your custom widget. If you can have your custom > >> application return a pointer to Android's media ContentProvider (just > >> like the Camera app does) that'll be easiest. If not, then you'll have > >> to to change the code in the FormEntryActivity to do the right thing. > >> (see > http://code.google.com/p/opendatakit/source/browse/src/org/odk/collect/android/activities/FormEntryActivity.java?repo=collect#330 > >> for an example) > >> > >> > We got the source for ODK Collect with the aim of customizing it for > data > >> > collection purposes in a project we're working on. What we are trying > to do > >> > is integrate an image processing application into the ODK collect > tool. We > >> > will then add a button in the image widget to call this application > which > >> > will process an image, then ideally attaches the processed image to > the > >> > form. > >> > So here's our roadblocks: > >> > > >> > We would like for there to be a landing page in the application with a > >> > button that would load a specific form on click instead of seeing a > list of > >> > forms and selecting one. > >> > Implement an if control structure in the image widget which would > load a > >> > specific object based on the form that is currently being filled i.e > >> > > >> > if(the_process_image_form_is_currently_being_filled) > >> > { > >> > > >> > //load the image processing button > >> > > >> > } > >> > else > >> > { > >> > //load the normal Capture Image/ Choose Image button > >> > } > >> > > >> > Any pointers on how we can do any of that? > > > > nks > > > > On Wednesday, March 28, 2012 3:18:22 AM UTC+3, Yaw Anokwa wrote: > >> You can use a form shortcut to point to an individual form (see > >> http://groups.google.com/group/opendatakit/msg/612046e08d25c516 > >> ) or just change the MainMenu activity to launch a particular form or > >> build a custom app that launches Collect with that particular form. > >> > >> You can add an appearance attribute in the form and change > >> WidgetFactory (see > >> > http://code.google.com/p/opendatakit/source/browse/src/org/odk/collect/android/widgets/WidgetFactory.java?repo=collect > ) > >> to branch to your custom widget. If you can have your custom > >> application return a pointer to Android's media ContentProvider (just > >> like the Camera app does) that'll be easiest. If not, then you'll have > >> to to change the code in the FormEntryActivity to do the right thing. > >> (see > http://code.google.com/p/opendatakit/source/browse/src/org/odk/collect/android/activities/FormEntryActivity.java?repo=collect#330 > >> for an example) > >> > >> > We got the source for ODK Collect with the aim of customizing it for > data > >> > collection purposes in a project we're working on. What we are trying > to do > >> > is integrate an image processing application into the ODK collect > tool. We > >> > will then add a button in the image widget to call this application > which > >> > will process an image, then ideally attaches the processed image to > the > >> > form. > >> > So here's our roadblocks: > >> > > >> > We would like for there to be a landing page in the application with a > >> > button that would load a specific form on click instead of seeing a > list of > >> > forms and selecting one. > >> > Implement an if control structure in the image widget which would > load a > >> > specific object based on the form that is currently being filled i.e > >> > > >> > if(the_process_image_form_is_currently_being_filled) > >> > { > >> > > >> > //load the image processing button > >> > > >> > } > >> > else > >> > { > >> > //load the normal Capture Image/ Choose Image button > >> > } > >> > > >> > Any pointers on how we can do any of that? > > > > Thanks for the reply. Is the ODK Tables project open source and if it > is, may you share a link to the project? >

You can find all ODK code repos at
https://code.google.com/p/opendatakit/wiki/SourceTab?tm=4

Yaw

··· -- Need ODK help? Go to http://nafundi.com for custom features, form design, implementation support, and user training for ODK.

On Thu, Jun 6, 2013 at 3:16 AM, Dilan sanjaya Perera dilsanja@gmail.com wrote:

hi
Yaw Anokwa
not working your link

On Thursday, March 29, 2012 7:49:59 PM UTC+5:30, Yaw Anokwa wrote:

http://code.google.com/p/opendatakit/source/browse?repo=spreadsheet.

On Thu, Mar 29, 2012 at 00:53, cha...@upande.com wrote:

Tha

On Wednesday, March 28, 2012 3:18:22 AM UTC+3, Yaw Anokwa wrote:

You can use a form shortcut to point to an individual form (see
http://groups.google.com/group/opendatakit/msg/612046e08d25c516
) or just change the MainMenu activity to launch a particular form or
build a custom app that launches Collect with that particular form.

You can add an appearance attribute in the form and change
WidgetFactory (see

http://code.google.com/p/opendatakit/source/browse/src/org/odk/collect/android/widgets/WidgetFactory.java?repo=collect)
to branch to your custom widget. If you can have your custom
application return a pointer to Android's media ContentProvider (just
like the Camera app does) that'll be easiest. If not, then you'll have
to to change the code in the FormEntryActivity to do the right thing.
(see
http://code.google.com/p/opendatakit/source/browse/src/org/odk/collect/android/activities/FormEntryActivity.java?repo=collect#330
for an example)

We got the source for ODK Collect with the aim of customizing it for
data
collection purposes in a project we're working on. What we are trying
to do
is integrate an image processing application into the ODK collect
tool. We
will then add a button in the image widget to call this application
which
will process an image, then ideally attaches the processed image to
the
form.
So here's our roadblocks:

We would like for there to be a landing page in the application with
a
button that would load a specific form on click instead of seeing a
list of
forms and selecting one.
Implement an if control structure in the image widget which would
load a
specific object based on the form that is currently being filled i.e

if(the_process_image_form_is_currently_being_filled)
{

//load the image processing button

}
else
{
//load the normal Capture Image/ Choose Image button
}

Any pointers on how we can do any of that?

nks

On Wednesday, March 28, 2012 3:18:22 AM UTC+3, Yaw Anokwa wrote:

You can use a form shortcut to point to an individual form (see
http://groups.google.com/group/opendatakit/msg/612046e08d25c516
) or just change the MainMenu activity to launch a particular form or
build a custom app that launches Collect with that particular form.

You can add an appearance attribute in the form and change
WidgetFactory (see

http://code.google.com/p/opendatakit/source/browse/src/org/odk/collect/android/widgets/WidgetFactory.java?repo=collect)
to branch to your custom widget. If you can have your custom
application return a pointer to Android's media ContentProvider (just
like the Camera app does) that'll be easiest. If not, then you'll have
to to change the code in the FormEntryActivity to do the right thing.
(see
http://code.google.com/p/opendatakit/source/browse/src/org/odk/collect/android/activities/FormEntryActivity.java?repo=collect#330
for an example)

We got the source for ODK Collect with the aim of customizing it for
data
collection purposes in a project we're working on. What we are trying
to do
is integrate an image processing application into the ODK collect
tool. We
will then add a button in the image widget to call this application
which
will process an image, then ideally attaches the processed image to
the
form.
So here's our roadblocks:

We would like for there to be a landing page in the application with
a
button that would load a specific form on click instead of seeing a
list of
forms and selecting one.
Implement an if control structure in the image widget which would
load a
specific object based on the form that is currently being filled i.e

if(the_process_image_form_is_currently_being_filled)
{

//load the image processing button

}
else
{
//load the normal Capture Image/ Choose Image button
}

Any pointers on how we can do any of that?

Thanks for the reply. Is the ODK Tables project open source and if it
is, may you share a link to the project?

--
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/groups/opt_out.

See the debugging section at http://developer.android.com/tools/workflow

Yaw

··· -- Need ODK help? Go to http://nafundi.com for custom features, form design, implementation support, and user training for ODK.

On Wed, Jun 12, 2013 at 3:02 PM, derrick.ambitho@gmail.com wrote:

On Thursday, 6 June 2013 17:18:45 UTC+3, Yaw Anokwa wrote:

You can find all ODK code repos at

https://code.google.com/p/opendatakit/wiki/SourceTab?tm=4

Yaw

--

Need ODK help? Go to http://nafundi.com for custom features, form

design, implementation support, and user training for ODK.

On Thu, Jun 6, 2013 at 3:16 AM, Dilan sanjaya Perera dilsanja@gmail.com wrote:

hi

Yaw Anokwa

not working your link

On Thursday, March 29, 2012 7:49:59 PM UTC+5:30, Yaw Anokwa wrote:

http://code.google.com/p/opendatakit/source/browse?repo=spreadsheet.

On Thu, Mar 29, 2012 at 00:53, cha...@upande.com wrote:

Tha

On Wednesday, March 28, 2012 3:18:22 AM UTC+3, Yaw Anokwa wrote:

You can use a form shortcut to point to an individual form (see

http://groups.google.com/group/opendatakit/msg/612046e08d25c516

) or just change the MainMenu activity to launch a particular form or

build a custom app that launches Collect with that particular form.

You can add an appearance attribute in the form and change

WidgetFactory (see

http://code.google.com/p/opendatakit/source/browse/src/org/odk/collect/android/widgets/WidgetFactory.java?repo=collect)

to branch to your custom widget. If you can have your custom

application return a pointer to Android's media ContentProvider (just

like the Camera app does) that'll be easiest. If not, then you'll have

to to change the code in the FormEntryActivity to do the right thing.

(see

http://code.google.com/p/opendatakit/source/browse/src/org/odk/collect/android/activities/FormEntryActivity.java?repo=collect#330

for an example)

We got the source for ODK Collect with the aim of customizing it for

data

collection purposes in a project we're working on. What we are trying

to do

is integrate an image processing application into the ODK collect

tool. We

will then add a button in the image widget to call this application

which

will process an image, then ideally attaches the processed image to

the

form.

So here's our roadblocks:

We would like for there to be a landing page in the application with

a

button that would load a specific form on click instead of seeing a

list of

forms and selecting one.

Implement an if control structure in the image widget which would

load a

specific object based on the form that is currently being filled i.e

if(the_process_image_form_is_currently_being_filled)

{

//load the image processing button

}

else

{

     //load the normal Capture Image/ Choose Image button

}

Any pointers on how we can do any of that?

nks

On Wednesday, March 28, 2012 3:18:22 AM UTC+3, Yaw Anokwa wrote:

You can use a form shortcut to point to an individual form (see

http://groups.google.com/group/opendatakit/msg/612046e08d25c516

) or just change the MainMenu activity to launch a particular form or

build a custom app that launches Collect with that particular form.

You can add an appearance attribute in the form and change

WidgetFactory (see

http://code.google.com/p/opendatakit/source/browse/src/org/odk/collect/android/widgets/WidgetFactory.java?repo=collect)

to branch to your custom widget. If you can have your custom

application return a pointer to Android's media ContentProvider (just

like the Camera app does) that'll be easiest. If not, then you'll have

to to change the code in the FormEntryActivity to do the right thing.

(see

http://code.google.com/p/opendatakit/source/browse/src/org/odk/collect/android/activities/FormEntryActivity.java?repo=collect#330

for an example)

We got the source for ODK Collect with the aim of customizing it for

data

collection purposes in a project we're working on. What we are trying

to do

is integrate an image processing application into the ODK collect

tool. We

will then add a button in the image widget to call this application

which

will process an image, then ideally attaches the processed image to

the

form.

So here's our roadblocks:

We would like for there to be a landing page in the application with

a

button that would load a specific form on click instead of seeing a

list of

forms and selecting one.

Implement an if control structure in the image widget which would

load a

specific object based on the form that is currently being filled i.e

if(the_process_image_form_is_currently_being_filled)

{

//load the image processing button

}

else

{

     //load the normal Capture Image/ Choose Image button

}

Any pointers on how we can do any of that?

Thanks for the reply. Is the ODK Tables project open source and if it

is, may you share a link to the project?

--

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/groups/opt_out.

i am trying to get an undersanding of building complex android apps by analyzing odk collect, but my build when run doesnt show the menu button to select admin settings and general settings. where can i quickly find and debug this?

--
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/groups/opt_out.

A post was split to a new topic: Adding Android ID to picture name