Code example for ListFragment

Methods: getFragmentManager

0
				this);
		this.setHasOptionsMenu(true);
	} 
 
	public void onClick(View v) {
		this.getFragmentManager().popBackStack();
	} 
 
	@Override 
	public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
		super.onCreateOptionsMenu(menu, inflater);
		menu.add(0, sRefreshId, 0, R.string.menu_refresh).setIcon(
				R.drawable.ic_menu_refresh); 
	} 
 
	@Override 
	public boolean onOptionsItemSelected(MenuItem item) {
		switch (item.getItemId()) {
		case sRefreshId:
			this.getActivity().startService(
					new Intent(this.getActivity(), GovIdFetchService.class));