title: Android cannot resolve constructor intent
body: <p>Here is a section of my code. I am trying to make a navigation menu in which when you click on the first list item it launches the activity <code>MrsClubb</code>. However when I put this into my code it comes up with the error:</p>
  
  <pre><code>Cannot resolve constructor 'Intent(android.widget.AdapterView.OnItemClickListener,java.lang.Class&lt;com....etc&gt;)'
  </code></pre>
  
  <p>Any ideas how to resolve this?</p>
  
  <p>The double ** shows where in the code the error is.</p>
  
  <p>Here is the section of the code:</p>
  
  <pre><code> @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
      Toolbar toolbar = (Toolbar)findViewById(R.id.toolbar);
      mDrawerLayout = (DrawerLayout)findViewById(R.id.drawer);
      mDrawerList = (ListView)findViewById(android.R.id.list);
      mDrawerListItems = getResources().getStringArray(R.array.drawer_list);
      mDrawerList.setAdapter(new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_list_item_1, mDrawerListItems));
      mDrawerList.setOnItemClickListener(new AdapterView.OnItemClickListener() {
          @Override
          public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
              switch(position) {
                  case 0:
                      Intent i = new Intent**(this, MrsClubb.class);**
                      startActivity(i);
              }
              mDrawerLayout.closeDrawer(mDrawerList);
  
          }
      });
      mDrawerToggle = new ActionBarDrawerToggle(this,
              mDrawerLayout,
              toolbar,
              R.string.drawer_open,
              R.string.drawer_close){
          public void onDrawerClosed(View v){
              super.onDrawerClosed(v);
              invalidateOptionsMenu();
              syncState();
          }
          public void onDrawerOpened(View v){
              super.onDrawerOpened(v);
              invalidateOptionsMenu();
              syncState();
          }
      };
  </code></pre>