Code example for ListFragment

Methods: getActivity, onCreate, setListAdapter

0
  private Journey journey_ = Journey.NULL_JOURNEY;
   
	@Override 
	public void onCreate(final Bundle savedInstanceState) 
	{ 
	  super.onCreate(savedInstanceState);
	  setListAdapter(new SegmentAdapter(getActivity(), this));
	} // onCreate 
 
	@Override 
  public void onResume()  
	{ 
		super.onResume(); 
		Route.onResume(); 
    Route.registerListener(this);
	} // onResume	 
   
  @Override 
  public void onPause() 
  { 
    Route.unregisterListener(this);