Communicate with parent activity

Put your problem here if it does not fit any of the other categories.

Communicate with parent activity

Postby bluefloyd8 » Sat Mar 15, 2008 9:07 pm

I would like to find a way for an activity to communicate with its parent activity. I have an activity which is called by the parent with the StartSubActivity() function.

If anyone knows of an effective way of doing this, i would appreciate it. Once i get it figured out, ill make a tiny-tutorial about it since i think this is could be a common question.

:::

EDIT:
I think using ActivityPendingResult (http://code.google.com/android/referenc ... esult.html) is a good way to do this. Right now i am trying to find a way to pass the token created by createActivityPendingResult to a child activity. I tried converting it to a string or int and passing it via bundle, but i cannot recast that back into a ActivityPendingResult object.
User avatar
bluefloyd8
Experienced Developer
Experienced Developer
 
Posts: 70
Joined: Tue Jan 22, 2008 3:57 am
Location: Indiana, USA

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 17 guests