title: intent keeps crashing my app?
body: <p>I'm building a simple menu app for my class. I have a ListView on my app and I am trying to make it so that when you click an item in the the list you are taken to the appropiate activity for that item. So far I got intents working outside my function but when I run it inside a function it crashes my program. can any one point me out in the right direction</p>
  
  <pre><code>    //set the item listener
      menu.setOnItemClickListener(new OnItemClickListener() {
          @Override
          public void onItemClick(AdapterView&lt;?&gt; adapterView, View view, int i, long l) {
              String selected = ((TextView) view.findViewById(R.id.complaint)).getText().toString();
              if(selected.equals("Pasta")){
                  runPasta();
              }
          }
      });
  
  
  }
  
  public void runPasta(){
      //Intent myIntent = new Intent(this, PastaItems.class);
      //myIntent.putStringArrayListExtra("finalList", foodList);
      this.startActivity(new Intent(this,PastaItems.class));
  
  }
  </code></pre>