Code example for ListFragment

Methods: getArguments

0
        super(); 
        players = new HashMap<Integer, Player>(); 
    } 
     
    public String getWeek() { 
        return getArguments().getString(WEEK_ARG); 
    } 
     
    public int getDay() { 
        return getArguments().getInt(DAY_ARG); 
    } 
     
    @Override 
    public void onActivityCreated(Bundle savedInstanceState) { 
        super.onActivityCreated(savedInstanceState); 
        String week = getWeek(); 
        int day = getDay(); 
        if (week == null || day == 0) { 
            return; 
        }