views:

104

answers:

2

My TabActivity contains two tabs which calls two two different activities . I want to setResult() for the TabActivity when either one of the child finishes.

Is there any method to find out when my activity inside tab finishes ?

Thank you -Eby

+1  A: 

You need to issue a Broadcast from your child activity(when finished) and implement the BroadcastReceiver on the class you want to catch the broadcast. You can use the extras to transfer data from one activity to another.

Pentium10
A: 

I found another way

@Override public void finishFromChild(Activity child) { setResult(REFRESH); super.finishFromChild(child); }

finsihFromChild will let us know when the child activity is finishing!! @pentium10 thank you very much for your suggestion..

Eby