I have Activity2 which is a TabActivity having child activities Activity3 and Activity4.Acticity2 is called from Activity1.I want results from child activity(Activity3 or Activity4) in Activity2.Any help on this…?
I have Activity2 which is a TabActivity having child activities Activity3 and Activity4.Acticity2 is
Share
startActivityForResultinstead ofstartActivityto start Activity3 and Activity4.setResultin your child activity to return data to the predecessor activityonActivityResultin your parent activity to receive the result from the child activityEdit: Added bundle information. Keeping original answer as it will likely be useful for others.
Since you aren’t actually starting the activity with
startActivity, you will need to store your data from the child activities, try this:In TabActivity:
In parent activity: