code: private void initializeList() {
      mListView = (ListView) findViewById(R.id.drawer_list);
      mListAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1);
      mListView.setAdapter(mListAdapter);
      mListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
        @Override
        public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {
          mFragmentSwitcher.setCurrentItem(position);
          mDrawerLayout.closeDrawer(Gravity.START);
        }
      });
    }
docs: Initializes the list that controls which fragment will be shown.