Code example for ListFragment

Methods: getListView, onActivityCreated, registerForContextMenu

0
	 * Metodo onActivityCreated 
	 */ 
	@Override 
	public void onActivityCreated(Bundle savedInstanceState) {
		 
		super.onActivityCreated(savedInstanceState);
		registerForContextMenu(getListView());
	} 
 
	 
	 
	/** 
	 * Metodo onCreateContextMenu 
	 */ 
	@Override 
	public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
         
		AdapterContextMenuInfo info = (AdapterContextMenuInfo) menuInfo;
        posicion = info.position;
         
Stop searching for code, let great code find you!  Add Codota to your java IDE