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)
Stop searching for code, let great code find you!  Add Codota to your java IDE