Overriding FormEntryActivity's save mechanism with our own

Hi,

I am working on a project that requires a forms entry/load/save feature.
The ODK Collect source has been added to the project as a thirdparty
module. The main activity populates the content provider with our form
path and starts
FormEntryActivity. FormEntryActivity brings up the UI and loads our
form. Now I need to intercept/override the FormEntryActivity's saving
methods/tasks. Our goal is to not change the ODK Collect source. I have a
few questions:

  1. Is it possible to change how odk saves a form without changing the odk
    source?

  2. If we do make minor changes to allow us to override FormEntryActivity is
    it possible to
    submit these changes to the ODK Dev team?

Looking forward to any thoughts.

Nima,

What high level goal are you trying to accomplish by overriding FEA's save?

Yaw

··· -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Tue, Jul 29, 2014 at 9:22 AM, Nima Ansari 0nima0@gmail.com wrote:

Hi,

I am working on a project that requires a forms entry/load/save feature.
The ODK Collect source has been added to the project as a thirdparty module.
The main activity populates the content provider with our form path and
starts
FormEntryActivity. FormEntryActivity brings up the UI and loads our form.
Now I need to intercept/override the FormEntryActivity's saving
methods/tasks. Our goal is to not change the ODK Collect source. I have a
few questions:

  1. Is it possible to change how odk saves a form without changing the odk
    source?

  2. If we do make minor changes to allow us to override FormEntryActivity is
    it possible to
    submit these changes to the ODK Dev team?

Looking forward to any thoughts.

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

Yaw,

We would like to override the point save and save method to accomplish the
following:

  • Our goal is use IoCipher to store/retrieve the data. Any input from the
    user must be encrypted before being stored.
  • Store/retrieve from server when ever possible

Thanks for the response.
Nima

··· On Wednesday, July 30, 2014 9:18:14 AM UTC-4, Yaw Anokwa wrote: > > Nima, > > What high level goal are you trying to accomplish by overriding FEA's > save? > > Yaw > -- > Need ODK services? http://nafundi.com provides form design, server > setup, professional support, and software development for ODK. > > On Tue, Jul 29, 2014 at 9:22 AM, Nima Ansari <0ni...@gmail.com > wrote: > > Hi, > > > > I am working on a project that requires a forms entry/load/save feature. > > The ODK Collect source has been added to the project as a thirdparty > module. > > The main activity populates the content provider with our form path and > > starts > > FormEntryActivity. FormEntryActivity brings up the UI and loads our > form. > > Now I need to intercept/override the FormEntryActivity's saving > > methods/tasks. Our goal is to not change the ODK Collect source. I have > a > > few questions: > > > > 1. Is it possible to change how odk saves a form without changing the > odk > > source? > > > > 2. If we do make minor changes to allow us to override FormEntryActivity > is > > it possible to > > submit these changes to the ODK Dev team? > > > > Looking forward to any thoughts. > > > > -- > > 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. >

Nima,

To answer your original questions:

  1. Nope.
  2. Depends on the changes, but probably.

I'm assuming you know about
http://opendatakit.org/help/encrypted-forms, but just wanted to point
that out in case you didn't.

You also might want to look at Commcare ODK because I believe they
wrap saves with encryption.
https://bitbucket.org/commcare/commcare-odk/commits/all.

Yaw

··· -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Wed, Jul 30, 2014 at 6:50 AM, Nima Ansari 0nima0@gmail.com wrote:

Yaw,

We would like to override the point save and save method to accomplish the
following:

  • Our goal is use IoCipher to store/retrieve the data. Any input from the
    user must be encrypted before being stored.
  • Store/retrieve from server when ever possible

Thanks for the response.
Nima

On Wednesday, July 30, 2014 9:18:14 AM UTC-4, Yaw Anokwa wrote:

Nima,

What high level goal are you trying to accomplish by overriding FEA's
save?

Yaw

Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.

On Tue, Jul 29, 2014 at 9:22 AM, Nima Ansari 0ni...@gmail.com wrote:

Hi,

I am working on a project that requires a forms entry/load/save feature.
The ODK Collect source has been added to the project as a thirdparty
module.
The main activity populates the content provider with our form path and
starts
FormEntryActivity. FormEntryActivity brings up the UI and loads our
form.
Now I need to intercept/override the FormEntryActivity's saving
methods/tasks. Our goal is to not change the ODK Collect source. I have
a
few questions:

  1. Is it possible to change how odk saves a form without changing the
    odk
    source?

  2. If we do make minor changes to allow us to override FormEntryActivity
    is
    it possible to
    submit these changes to the ODK Dev team?

Looking forward to any thoughts.

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

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

Yaw,

Thanks for the links. I will be able to use Commcare's approach as a model
to follow.
The only changes are are requiring is to increase the visibility of 2
methods from private to protected.

Once we finalize our approach, we will submit a request for the changes.

Nima

··· On Wednesday, July 30, 2014 10:27:48 AM UTC-4, Yaw Anokwa wrote: > > Nima, > > To answer your original questions: > 1. Nope. > 2. Depends on the changes, but probably. > > I'm assuming you know about > http://opendatakit.org/help/encrypted-forms, but just wanted to point > that out in case you didn't. > > You also might want to look at Commcare ODK because I believe they > wrap saves with encryption. > https://bitbucket.org/commcare/commcare-odk/commits/all. > > Yaw > -- > Need ODK services? http://nafundi.com provides form design, server > setup, professional support, and software development for ODK. > > On Wed, Jul 30, 2014 at 6:50 AM, Nima Ansari <0ni...@gmail.com > wrote: > > Yaw, > > > > We would like to override the point save and save method to accomplish > the > > following: > > - Our goal is use IoCipher to store/retrieve the data. Any input from > the > > user must be encrypted before being stored. > > - Store/retrieve from server when ever possible > > > > Thanks for the response. > > Nima > > > > > > > > On Wednesday, July 30, 2014 9:18:14 AM UTC-4, Yaw Anokwa wrote: > >> > >> Nima, > >> > >> What high level goal are you trying to accomplish by overriding FEA's > >> save? > >> > >> Yaw > >> -- > >> Need ODK services? http://nafundi.com provides form design, server > >> setup, professional support, and software development for ODK. > >> > >> On Tue, Jul 29, 2014 at 9:22 AM, Nima Ansari <0ni...@gmail.com> wrote: > >> > Hi, > >> > > >> > I am working on a project that requires a forms entry/load/save > feature. > >> > The ODK Collect source has been added to the project as a thirdparty > >> > module. > >> > The main activity populates the content provider with our form path > and > >> > starts > >> > FormEntryActivity. FormEntryActivity brings up the UI and loads our > >> > form. > >> > Now I need to intercept/override the FormEntryActivity's saving > >> > methods/tasks. Our goal is to not change the ODK Collect source. I > have > >> > a > >> > few questions: > >> > > >> > 1. Is it possible to change how odk saves a form without changing the > >> > odk > >> > source? > >> > > >> > 2. If we do make minor changes to allow us to override > FormEntryActivity > >> > is > >> > it possible to > >> > submit these changes to the ODK Dev team? > >> > > >> > Looking forward to any thoughts. > >> > > >> > -- > >> > 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. > > > > -- > > 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. >