Code example for Bundle

Methods: putIntputSerializable

0
        adapter.swapCursor(cursor);
    } 
 
	public static ItemListFragment newInstance(int currentState, StoryOrder storyOrder) {
		ItemListFragment everythingFragment = new AllStoriesItemListFragment();
		Bundle arguments = new Bundle();
		arguments.putInt("currentState", currentState);
		arguments.putSerializable("storyOrder", storyOrder);
		everythingFragment.setArguments(arguments);
 
		return everythingFragment;
	} 
 
	@Override 
	public void onScroll(AbsListView view, int firstVisible, int visibleCount, int totalCount) {
		if (firstVisible + visibleCount == totalCount && !requestedPage && doRequest) {
			currentPage += 1;
			requestedPage = true;
			((ItemsList) getActivity()).triggerRefresh(currentPage);
		} 
	}