Code example for ListFragment

Methods: getListView, onActivityCreated, registerForContextMenu

0
	} 
 
	@Override 
	public void onActivityCreated(final Bundle savedInstanceState)
	{ 
		super.onActivityCreated(savedInstanceState);
		registerForContextMenu(getListView());
	} 
  
	 
	@Override 
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		// TODO Auto-generated method stub 
//		registerForContextMenu(inflater.inflate(R.layout.activity_fragment1, container, false)); 
		return inflater.inflate(R.layout.activity_fragment1, container, false);
	} 
 
	@Override 
	public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
		// TODO Auto-generated method stub