OK I've had this problem for a while now. I'm developing a camera app that does some verification and uploads a photo to a website.
My problem is, I keep running into the question of making a chain of activities each returning a result on finishing to the previous activity, or making each activity return to the main activity, which spawns the next activity, depending on the result.
Here's an example: The main activity shows a photo gallery from which you can launch a camera preview. After capturing a photo, another activity opens where you can verify that you want to save that photo. After verifying, you are shown another activity which displays the progress of your upload. This could be implemented as a chain of startactivityforresults:
Gallery -> camera -> Verification -> Upload -> verification -> camera -> Gallery
OR as:
Gallery -> camera
camera -> Gallery
Gallery -> Verification
Verification -> Gallery
Gallery -> Upload
Upload -> Gallery