Can we launch some other third party app with ODK forms

Hi,

We are using ODK for the data collection from a long time, recently we have
received one requirement from the client and the requirement is

  1.   Open odk data collection form
    
  2.   Define one button and launch third party application
    
  3.   With the help of third party application, calculate the area and
    

save it

  1.   The moment user has saved the area that value should be passed to
    

ODK and with the help of ODK user will submit the data on server

  1.   Or after area calculation id user is closing the application
    

without saving in application then in that case application should pass the
value to ODK either it saved or not

Please let me know is it possible in ODK, if yes then how we can implement
this?

Regards,

Mohammad Sohail

I haven't documented this on the opendatakit.org site yet, but it is now
possible to launch an external app to collect a single string, int or
decimal value.

There isn't really a way to pass values into that external app (e.g., the
coordinates of the points you need the area of) without a code change of
some kind.

The breathTest form:

http://code.google.com/p/opendatakit/source/browse/breathTest.xml?repo=forms
shows how to launch an external app and obtain an integer back from it.
You can also get a string or decimal number back (the datatype is defined
by the bind type).

The external app that the form works with is BreathCounter.apk (
http://code.google.com/p/opendatakit/downloads/detail?name=BreathCounter.apk).
The source for this app is here:
http://code.google.com/p/opendatakit/source/checkout?repo=androidextras

Mitch

··· On Wed, Aug 1, 2012 at 9:36 AM, Mohammad Sohail wrote:

Hi,****


We are using ODK for the data collection from a long time, recently we
have received one requirement from the client and the requirement is ****

1. Open odk data collection form

2. Define one button and launch third party application

3. With the help of third party application, calculate the area
and save it

**4. **The moment user has saved the area that value should be
passed to ODK and with the help of ODK user will submit the data on server


5. Or after area calculation id user is closing the application
without saving in application then in that case application should pass the
value to ODK either it saved or not


Please let me know is it possible in ODK, if yes then how we can implement
this?****


Regards,****

Mohammad Sohail****

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

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

Also -- w.r.t. passing additional values. A quick-and-dirty way to
accomplish this is by reading the XML savepoint file (which is written
right before the external app is launched) and extracting data directly
from that (this will tightly couple your app to the structure of your
forms). The savepoint file is stored in
/odk/.cache/your-form-name-plus-timestamp.xml.save Note that there could
be multiple savepoint files, so you'd want to look for the most recently
modified one.

Mitch

··· On Wed, Aug 1, 2012 at 10:50 AM, Mitch S wrote:

I haven't documented this on the opendatakit.org site yet, but it is now
possible to launch an external app to collect a single string, int or
decimal value.

There isn't really a way to pass values into that external app (e.g., the
coordinates of the points you need the area of) without a code change of
some kind.

The breathTest form:

http://code.google.com/p/opendatakit/source/browse/breathTest.xml?repo=forms
shows how to launch an external app and obtain an integer back from it.
You can also get a string or decimal number back (the datatype is defined
by the bind type).

The external app that the form works with is BreathCounter.apk (
http://code.google.com/p/opendatakit/downloads/detail?name=BreathCounter.apk).
The source for this app is here:
http://code.google.com/p/opendatakit/source/checkout?repo=androidextras

Mitch

On Wed, Aug 1, 2012 at 9:36 AM, Mohammad Sohail msohail@cropsdata.comwrote:

Hi,****


We are using ODK for the data collection from a long time, recently we
have received one requirement from the client and the requirement is ****

1. Open odk data collection form

2. Define one button and launch third party application

3. With the help of third party application, calculate the
area and save it

**4. **The moment user has saved the area that value should be
passed to ODK and with the help of ODK user will submit the data on server


5. Or after area calculation id user is closing the
application without saving in application then in that case application
should pass the value to ODK either it saved or not


Please let me know is it possible in ODK, if yes then how we can
implement this?****


Regards,****

Mohammad Sohail****

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

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

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

Hi Mohammad,

We were working on incorporating area measurement into ODK back in
February. You can read more about the progress here:
https://groups.google.com/forum/?fromgroups#!searchin/opendatakit/distance$20area$20measurement/opendatakit/vIpPH5dcYcc/TFXTPqEe78IJ

If you'd like to collaborate, I suggest you email Prabhas and Matt
at: prabhas.pokharel@gmail.com and mberg@ei.columbia.edu I believe they are
going to start up work on this again soon.

··· On Wednesday, August 1, 2012 7:36:58 PM UTC+3, Mohammad Sohail wrote: > > Hi, > > > > We are using ODK for the data collection from a long time, recently we > have received one requirement from the client and the requirement is > > 1. Open odk data collection form > > 2. Define one button and launch third party application > > 3. With the help of third party application, calculate the area and > save it > > 4. The moment user has saved the area that value should be passed > to ODK and with the help of ODK user will submit the data on server > > 5. Or after area calculation id user is closing the application > without saving in application then in that case application should pass the > value to ODK either it saved or not > > > > Please let me know is it possible in ODK, if yes then how we can implement > this? > > > > Regards, > > Mohammad Sohail >

We identify a similar need, launching google maps (with a map stored for
offline use) and setting a pin-point manually. Then either capturing
coordinates or a screen-shot as a back up for the gps (when accuracy is
insufficient).

Thomas

PS: will post a question re offline-use of geopoint widget with appearance
maps separately.

··· On Wednesday, August 1, 2012 6:36:58 PM UTC+2, Mohammad Sohail wrote: > > Hi, > > > > We are using ODK for the data collection from a long time, recently we > have received one requirement from the client and the requirement is > > 1. Open odk data collection form > > 2. Define one button and launch third party application > > 3. With the help of third party application, calculate the area and > save it > > 4. The moment user has saved the area that value should be passed > to ODK and with the help of ODK user will submit the data on server > > 5. Or after area calculation id user is closing the application > without saving in application then in that case application should pass the > value to ODK either it saved or not > > > > Please let me know is it possible in ODK, if yes then how we can implement > this? > > > > Regards, > > Mohammad Sohail >

Thank you ERIC Couper!

··· From: Eric Couper [mailto:eric.couper@gmail.com] Sent: 02 August 2012 18:00 To: opendatakit@googlegroups.com Cc: msohail@cropsdata.com Subject: Re: can we launch some other third party app with ODK forms

Hi Mohammad,

We were working on incorporating area measurement into ODK back in February. You can read more about the progress here: https://groups.google.com/forum/?fromgroups#!searchin/opendatakit/distance$20area$20measurement/opendatakit/vIpPH5dcYcc/TFXTPqEe78IJ

If you'd like to collaborate, I suggest you email Prabhas and Matt at: prabhas.pokharel@gmail.com and mberg@ei.columbia.edu I believe they are going to start up work on this again soon.

On Wednesday, August 1, 2012 7:36:58 PM UTC+3, Mohammad Sohail wrote:

Hi,

We are using ODK for the data collection from a long time, recently we have received one requirement from the client and the requirement is

  1.   Open odk data collection form
    
  2.   Define one button and launch third party application
    
  3.   With the help of third party application, calculate the area and save it
    
  4.   The moment user has saved the area that value should be passed to ODK and with the help of ODK user will submit the data on server
    
  5.   Or after area calculation id user is closing the application without saving in application then in that case application should pass the value to ODK either it saved or not
    

Please let me know is it possible in ODK, if yes then how we can implement this?

Regards,

Mohammad Sohail

Please let me know what is the purpose of geo tagger form, it doesn’t calculate the area.

··· From: Mohammad Sohail [mailto:msohail@cropsdata.com] Sent: 02 August 2012 18:26 To: 'Eric Couper'; 'opendatakit@googlegroups.com' Subject: RE: can we launch some other third party app with ODK forms

Thank you ERIC Couper!

From: Eric Couper [mailto:eric.couper@gmail.com]
Sent: 02 August 2012 18:00
To: opendatakit@googlegroups.com
Cc: msohail@cropsdata.com
Subject: Re: can we launch some other third party app with ODK forms

Hi Mohammad,

We were working on incorporating area measurement into ODK back in February. You can read more about the progress here: https://groups.google.com/forum/?fromgroups#!searchin/opendatakit/distance$20area$20measurement/opendatakit/vIpPH5dcYcc/TFXTPqEe78IJ

If you'd like to collaborate, I suggest you email Prabhas and Matt at: prabhas.pokharel@gmail.com and mberg@ei.columbia.edu I believe they are going to start up work on this again soon.

On Wednesday, August 1, 2012 7:36:58 PM UTC+3, Mohammad Sohail wrote:

Hi,

We are using ODK for the data collection from a long time, recently we have received one requirement from the client and the requirement is

  1.   Open odk data collection form
    
  2.   Define one button and launch third party application
    
  3.   With the help of third party application, calculate the area and save it
    
  4.   The moment user has saved the area that value should be passed to ODK and with the help of ODK user will submit the data on server
    
  5.   Or after area calculation id user is closing the application without saving in application then in that case application should pass the value to ODK either it saved or not
    

Please let me know is it possible in ODK, if yes then how we can implement this?

Regards,

Mohammad Sohail

Geo tagger form doesn’t calculate the area, so my problem still exist.

We are using ODK for the data collection from a long time, recently we have received one requirement from the client and the requirement is

  1.   Open odk data collection form
    
  2.   Define one button and launch third party application
    
  3.   With the help of third party application, calculate the area and save it
    
  4.   The moment user has saved the area that value should be passed to ODK and with the help of ODK user will submit the data on server
    
  5.   Or after area calculation id user is closing the application without saving in application then in that case application should pass the value to ODK either it saved or not
    

Please let me know is it possible in ODK, if yes then how we can implement this?

··· From: Mohammad Sohail [mailto:msohail@cropsdata.com] Sent: 03 August 2012 08:51 To: 'Eric Couper'; 'opendatakit@googlegroups.com'; 'prabhas.pokharel@gmail.com'; 'mberg@ei.columbia.edu' Subject: RE: can we launch some other third party app with ODK forms

Please let me know what is the purpose of geo tagger form, it doesn’t calculate the area.

From: Mohammad Sohail [mailto:msohail@cropsdata.com]
Sent: 02 August 2012 18:26
To: 'Eric Couper'; 'opendatakit@googlegroups.com'
Subject: RE: can we launch some other third party app with ODK forms

Thank you ERIC Couper!

From: Eric Couper [mailto:eric.couper@gmail.com]
Sent: 02 August 2012 18:00
To: opendatakit@googlegroups.com
Cc: msohail@cropsdata.com
Subject: Re: can we launch some other third party app with ODK forms

Hi Mohammad,

We were working on incorporating area measurement into ODK back in February. You can read more about the progress here: https://groups.google.com/forum/?fromgroups#!searchin/opendatakit/distance$20area$20measurement/opendatakit/vIpPH5dcYcc/TFXTPqEe78IJ

If you'd like to collaborate, I suggest you email Prabhas and Matt at: prabhas.pokharel@gmail.com and mberg@ei.columbia.edu I believe they are going to start up work on this again soon.

On Wednesday, August 1, 2012 7:36:58 PM UTC+3, Mohammad Sohail wrote:

Hi,

We are using ODK for the data collection from a long time, recently we have received one requirement from the client and the requirement is

  1.   Open odk data collection form
    
  2.   Define one button and launch third party application
    
  3.   With the help of third party application, calculate the area and save it
    
  4.   The moment user has saved the area that value should be passed to ODK and with the help of ODK user will submit the data on server
    
  5.   Or after area calculation id user is closing the application without saving in application then in that case application should pass the value to ODK either it saved or not
    

Please let me know is it possible in ODK, if yes then how we can implement this?

Regards,

Mohammad Sohail