Code example for ListFragment

Methods: getListView, onResume, registerForContextMenu

0
				getActivity().findViewById(R.id.list_view_empty));
	} 
 
	@Override 
	public void onResume() { 
		super.onResume(); 
		registerForContextMenu(getListView());
	} 
 
	public void updateList() { 
		c = myDB.query(table, new String[] { LSGSQliteOpenHelper.DB_ROWID,
				LSGSQliteOpenHelper.DB_FACH }, wherecond, null, null, null,
				null); 
		Log.d("where", wherecond);
		adap.changeCursor(c);
	} 
 
	@Override 
	public void onCreateContextMenu(ContextMenu menu, View v,
			ContextMenuInfo menuInfo) {
		super.onCreateContextMenu(menu, v, menuInfo);