Code example for ListFragment

Methods: getListView, getActivity, onActivityCreated, setRetainInstance

0
	} 
 
	@Override 
	public void onActivityCreated(Bundle savedInstanceState)
	{ 
		super.onActivityCreated(savedInstanceState);
 
		setRetainInstance(true);
 
		getListView().setLongClickable(true);
		getListView().setOnItemLongClickListener(this);
 
		mDb = DatabaseHelper.getInstance(getActivity());
 
		new LoadLotteriesTask().execute();
	} 
 
	@Override 
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState)
Connect your IDE to all the code out there  Get Codota for Java