Say I have 2 fragments: A and B
Fragment A is on top. Now, I add fragment B keeping A in backstack.
Now when back button is pressed, B is removed and A comes on top.
Is there any callback method in A which gets called at this point?
Note: onResume is closely bound with activity, thus it is not called. Fragment's onResume() is called only when activity's onResume() is called.