Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 184.108.40.206 release ready!
Updated 15 December 2016
You can see everywhere written that an activity can be converted into fragment very easily but what to do when you have to call a fragment for result from another fragment it is kind of look weird but it is a scenario you can face when you have a fragment and then have to call different fragments from it to get result and show that result in your fragment (earlier one).
But there is a solution for this problem as well. All you have to do is implement your activity (calling all those fragments) with FragmentManager.OnBackStackChangeListener and then bind this listener to your FragmentManager object. Now in the implementation of this listener call a method of your fragment you want to call when that fragment is popout of the BackStack like
and you can do anything inside this method of your fragment. But remember to add each of your fragment to backstack as this listener is called only when you pop out a earlier fragment from back stack.
Your email address will not be published. Required fields are marked*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.