Code example for Fragment

Methods: getArguments

    private ArrayList<Intent> mIntents;
    private IntentListView mListView;
    private int mScrollIndex, mScrollTop;
    public int getIcon() { 
        return getArguments().getInt("icon");
    public String getTitle() {
        return getArguments().getString("title");
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        Bundle args = getArguments();
        mIntents = args.getParcelableArrayList("intents");
        mListView = new IntentListView(getActivity());
        if (mScrollIndex != -1 && mScrollTop != -1)
Connect your IDE to all the code out there  Get Codota for Java