@Override
        public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
            Bundle args = getArguments();
            TierCategory category = (TierCategory) args.getSerializable("category");
            String tier = args.getString("tier");
            // Inflate the layout for this fragment
            View view = inflater.inflate(R.layout.fragment_tier_list, container, false);
            LinearLayout layout = (LinearLayout) view.findViewById(R.id.tier_layout);
            try {//TODO: see if we can be more error-tolerance
                myTask = new PopulateTierTableAsyncTask(getActivity(), layout, category).execute(tier);
            } catch (Exception e) {
                e.printStackTrace();
            }
            return view;
        }
@Override
        public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
            Bundle args = getArguments();
            TierCategory category = (TierCategory) args.getSerializable("category");
            String tier = args.getString("tier");
           
            View view = inflater.inflate(R.layout.fragment_tier_list, container, false);
            LinearLayout layout = (LinearLayout) view.findViewById(R.id.tier_layout);
            try 
                myTask = new PopulateTierTableAsyncTask(getActivity(), layout, category).execute(tier);
            } catch (Exception e) {
                e.printStackTrace();
            }
            return view;
        }
@override public view oncreateview(layoutinflater inflater, viewgroup container, bundle savedinstancestate) { bundle args = getarguments(); tiercategory category = (tiercategory) args.getserializable("category"); string tier = args.getstring("tier"); view view = inflater.inflate(r.layout.fragment_tier_list, container, false); linearlayout layout = (linearlayout) view.findviewbyid(r.id.tier_layout); try mytask = new populatetiertableasynctask(getactivity(), layout, category).execute(tier); } catch (exception e) { e.printstacktrace(); } return view; }