Yep, a common way to pass information between activities is a URI. We
definitely want to use the EXTRA_OUTPUT to specify a location for the
image file produced. The default would be to appear in the gallery,
which I agree we want to avoid.
> So it looks like we'll have to either write our own camera activity
>
Yes we want an activity that wraps around the IMAGE_CAPTURE activity.
I just wanted to avoid using the Camera directly...
> --OR--
>
> Create something like an invisible TabHost or ActivityGroup and have
> all of the activities with the wound image running at the same time.
I'd rather stick to the traditional Activity stack. An object
containing the wound information (personal data, location/size
information, etc) can also be serialized and passed as URI between
activities, also containing the URI (or URIs, we may want to one-time
process the image in a few standard sizes) for the associated image.
Of course, if you have some compelling reason why using some other API
class in perhaps unconventional ways would be beneficial, I am all
ears.
> This is probably less work, but it'll also result in a bunch of ugly
> wound pictures being saved onto our poor volunteer's SD Card and
> slower performance.
>
If we do things properly, the file can be deleted when we are done
regardless of how stored. I suppose user could forcequit or phone
could crash and in that case the file from the capture in progress
would remain. But that is not a problem I think we can
programmatically avoid. Also it is likely that in the field,
organizations would keep a fleet of inexpensive devices to issue to
volunteers, rather than having each use their personal phones. I am
not that worried about performance, one image is not a lot of data to
access from flash memory.
> Thoughts? I think most of the newer android phones handle the intent
> properly though.
Yeah, let's program to the API spec and not worry about specific
devices for now :)
Maybe this (EXTRA_OUTPUT) is something that was introduced in a
specific API version? Can you find out about that?
cheers,
jon