Code example for ListFragment

Methods: setListAdapter, getActivity, onCreate, setRetainInstance