I have MainActivity and inside this activity i have four fragments. The fragment name are A,B,C,D.
Fragment currentVisibleFragment = getSupportFragmentManager().findFragmentByTag(null);
using this above line i am trying to get the current visible fragment but i cant get the current visible fragment.            
 
     
     
     
     
     
    