Code example for ListFragment

Methods: getActivity, startActivityForResult

		// TODO Auto-generated method stub 
		return super.onOptionsItemSelected(item);
	private void createTask() { 
        Intent i = new Intent(getActivity(), T_editor.class);
        startActivityForResult(i, ACTIVITY_CREATE);
	private MyAdapter fillData() { 
        Cursor tasksCursor = mDbHelper.fetchAllTasks();
        // Create an array to specify the fields we want to display in the list (only TITLE) 
        String[] from = new String[]{DBMgr.TASK_TITLE};
        // and an array of the fields we want to bind those fields to (in this case just text1) 
        int[] to = new int[]{};
        // Now create a simple cursor adapter and set it to display