Code example for ListFragment

Methods: getActivity, onAttach, setListAdapter

0
	} 
 
	@Override 
	public void onAttach(Activity activity) {
		// TODO Auto-generated method stub 
		super.onAttach(activity);
		 
		ArrayAdapter<String> adapter = new ArrayAdapter<String>(getActivity(),
				android.R.layout.simple_list_item_1, android.R.id.text1,
				new String[] { "a", "b", "c" });
 
		/*View footer = activity.getLayoutInflater().inflate( 
				R.layout.footer_layout, getListView()); 
		getListView().addFooterView(footer);*/ 
		setListAdapter(adapter);
	} 
 
	@Override 
	public void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub 
		super.onCreate(savedInstanceState);