Hi I am developing android application in which I am using I am using single Activity and 3 fragments. So consider I have 3 fragments A B C. When I switch from A to
Activity
you can use this method of fragment :
@Override public void onHiddenChanged(boolean hidden) { super.onHiddenChanged(hidden); }