Code example for ListFragment

Methods: getListAdapter, getActivity, startActivity

0
		getListView().setOnItemClickListener(this);
	} 
 
	@Override 
	public void onItemClick(AdapterView<?> arg0, View arg1, int pos, long arg3) {
		SamplesItem item = (SamplesItem) getListAdapter().getItem(pos);
		Intent intent = new Intent(getActivity(), item.getActivityToStart());
		startActivity(intent);
	} 
} 
Experience pair programming with AI  Get Codota for Java