0

I have an activity i.e., HomeActivity, then i have a fragment in HomeActivity with name ParentFragment. In ParentFragment there are three tabs A, B and C. The ParentFragment places A, B and C in nested fragment container. Now A, B and C are nested fragments inside ParentFragment. I have implemented startActivityForResult in A. I then implemented the OnActivityResult in ParentFragment because i was unable to get response in A. Now i am getting OnActivityResult for the first time in ParentFragment but when i switch between B and then back to A, the OnActvityResult is not calling.

Any help is appreciated in advance.

Najeebullah Shah
  • 4,164
  • 4
  • 35
  • 49
  • 1
    I think here you have the solution: [http://stackoverflow.com/questions/6147884/onactivityresult-not-being-called-in-fragment][1] [1]: http://stackoverflow.com/questions/6147884/onactivityresult-not-being-called-in-fragment – aldakur Apr 21 '15 at 08:34
  • i got the idea from your answer by overriding the onactivityresult in HomeActivity rather than ParentFragment. Thanks for the answer – Najeebullah Shah Apr 21 '15 at 09:29

1 Answers1

1

I hope this link will solve your problem

nvinayshetty
  • 3,187
  • 1
  • 21
  • 32