Code example for ListFragment

Methods: getActivity, getListAdapter, startActivity

0
		return view;
    } 
     
    @Override 
    public void onListItemClick (ListView l, View v, int position, long id){
    	Game selectedGame = (Game) this.getListAdapter().getItem(position);
    	String gameId = selectedGame.getObjectId();
    	showGameActivity(gameId);
    } 
     
 
	 
	public void showGameActivity(String gameId){
    	Intent intent = new Intent(getActivity(), GameDetailActivity.class);
    	intent.putExtra("GAME_ID", gameId);
    	startActivity(intent);
    } 
	 
	public void updateData(){ 
        LentAdapter adapter = (LentAdapter)getListAdapter();
        adapter.loadObjects();