 FragmentManager disablefm;     SharedPreferences disabledMenu;     SharedPreferences.Editor editor;      Context ctx;      public PagerAdapter(FragmentManager fm, int NumOfTabs, Context context) {         super(fm);         this.mNumOfTabs = NumOfTabs;         disablefm = fm;         ctx = context;     }      @Override     public Fragment getItem(int position) {          switch (position) {             case 0:                 CallFragment tab0 = new CallFragment();                 return tab0;             case 0:                 ChatFragment tab0 = new ChatFragment();                 return tab0;             case 0:                 RoomServiceMenu tab0 = new RoomServiceMenu();                 return tab0;             case 0:                 HouseKeepingFragment tab0 = new HouseKeepingFragment();                 //MealFragment tab0 = new MealFragment();                 return tab0;             case 0:                 