title: Open new activity and/or Fragment using DrawerList Menu
body: <p>So I've followed a tutorial to implement a side menu (Menu slides in from left), everything works perfectly but I'm not sure how to make the menu usable. I want to start either a new activity or Fragment on button click. Right now it shows the 4 Strings (Android, IOS, Windows, OS X, Linux) but when I click them nothing happens?</p>
  
  <p>Any assistance would be great! Thanks.</p>
  
  <pre><code>  private void addDrawerItems() {
      String[] osArray = { "Android", "iOS", "Windows", "OS X", "Linux" };
      mAdapter = new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_list_item_1, osArray);
      mDrawerList.setAdapter(mAdapter);
  }
  
  private void setupDrawer() {
  
      mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout,
              R.string.drawer_open, R.string.drawer_close) {
  
          /** Called when a drawer has settled in a completely open state. */
          public void onDrawerOpened(View drawerView) {
  
              super.onDrawerOpened(drawerView);
              getSupportActionBar().setTitle("Navigation!");
              invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()
          }
  
          /** Called when a drawer has settled in a completely closed state. */
          public void onDrawerClosed(View view) {
              super.onDrawerClosed(view);
              getSupportActionBar().setTitle(mActivityTitle);
              invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()
  
          }
      };
  
  
      mDrawerToggle.setDrawerIndicatorEnabled(true);
      mDrawerLayout.setDrawerListener(mDrawerToggle);
  
  }
  
  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
      // Handle action bar item clicks here. The action bar will
      // automatically handle clicks on the Home/Up button, so long
      // as you specify a parent activity in AndroidManifest.xml.
  
      //noinspection SimplifiableIfStatement
      if (mDrawerToggle.onOptionsItemSelected(item)) {
          return true;
      }
  
      return super.onOptionsItemSelected(item);
  
  }
  </code></pre>
  
  <p>There is also this line of code as well that I believe is where I may make the changes to make this possible? </p>
  
  <pre><code>mDrawerList.setOnItemClickListener(new AdapterView.OnItemClickListener() {
          @Override
          public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
              Toast.makeText(MainActivity.this, "Time for an upgrade!", Toast.LENGTH_SHORT).show();
          }
      });
  </code></pre>