Code example for ListFragment

Methods: getArguments

0
        return f;
    } 
     
     
    public String getAssetFile() {
        return (String) getArguments().get("asset");
    } 
     
    @Override 
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
        View v = inflater.inflate(R.layout.activity_main, container, false);
        return v;
    } 
     
    @Override 
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
 
        ENumbersParser parser = new ENumbersParser(getActivity());
        List<ENumber> enumbers = parser.parseFromAssets(getAssetFile());