Code example for ListFragment

Methods: getListView, onActivityCreated, registerForContextMenu

0
	 
	 
	 
	@Override 
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
		 
//		playList = FavoriteDao.FindAll(getActivity()); 
//		 
//		adapter = new PlayListAdapter(getActivity(), android.R.layout.simple_list_item_2, playList); 
//		setListAdapter(adapter); 
		registerForContextMenu(getListView());
	} 
	 
	@Override 
	public void onListItemClick(ListView l, View v, int position, long id) {
		super.onListItemClick(l, v, position, id);
		 
        Intent intent = new Intent(getActivity(),PlayerActivity.class);
        intent.putExtra("PlayList", playList);
        intent.putExtra("Position", position);