Skip to content Skip to sidebar Skip to footer

Start Activity For Result When Started Activity Is Not The "returner"

Let's say I have four activities: StartActivity, ConfigureActivity, GameActivity, and ResultActivity. The flow of activities is as such: StartActivity starts ConfigureActivity wit

Solution 1:

Only the StartActivity has to create a new Intent.

All the other activities use the same intent.

At forwarding while starting a new activity but also used as result intent for setResult().

Different activities just use intent.putExtra() to put extra data.

In this way all putExtras() keep remained and every activity can read the putExtras of all other activities.

Post a Comment for "Start Activity For Result When Started Activity Is Not The "returner""