breathTest example

I am trying to replicate the breathTest example where you launch an external app. I have been able to set the intent-filter to lauch my app but have not figured out how to return the value back to the form.

In the README it indicates to place the value you want to return in intent.putExtra("value", yourValue) but I cannot figure where to place that line in my apps code and how that intent is initialized?

Forgive my basic question. My knowledge of android apps is extremely limited. Thanks for your time.

The BreathCounter app is checked into the 'AndroidExtras' code repository
http://code.google.com/p/opendatakit/source/browse/?repo=androidextras

Here is the relevant section of code:
http://code.google.com/p/opendatakit/source/browse/BreathCounter/src/change/uw/breathcounter/BreathCounterActivity.java?repo=androidextras#319

··· On Fri, Jun 21, 2013 at 1:49 PM, Jeff wrote:

I am trying to replicate the breathTest example where you launch an
external app. I have been able to set the intent-filter to lauch my app but
have not figured out how to return the value back to the form.

In the README it indicates to place the value you want to return in
intent.putExtra("value", yourValue) but I cannot figure where to place that
line in my apps code and how that intent is initialized?

Forgive my basic question. My knowledge of android apps is extremely
limited. Thanks for your time.

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

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

The BreathCounter app is checked into the 'AndroidExtras' code repository http://code.google.com/p/opendatakit/source/browse/?repo=androidextras

Here is the relevant section of code: http://code.google.com/p/opendatakit/source/browse/BreathCounter/src/change/uw/breathcounter/BreathCounterActivity.java?repo=androidextras#319

I am trying to replicate the breathTest example where you launch an external app. I have been able to set the intent-filter to lauch my app but have not figured out how to return the value back to the form.

In the README it indicates to place the value you want to return in intent.putExtra("value", yourValue) but I cannot figure where to place that line in my apps code and how that intent is initialized?

Forgive my basic question. My knowledge of android apps is extremely limited. Thanks for your time.

--

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.

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

Great that is totally what I needed. Thanks for the quick response!

··· On Friday, June 21, 2013 2:07:38 PM UTC-7, Mitch wrote: > On Fri, Jun 21, 2013 at 1:49 PM, Jeff wrote: