title: Error :Intent(new AdapterView.OnItemClickListener(){}, Class<ProductListActivity>) is undefined
body: <p>I am developing an android application and use <strong>Gridview</strong> to display 16 Text View Controls 
  When user clicks a particular Text View control I need to open another activity
  My <strong>Gridview</strong> item click event as follows</p>
  
  <pre><code> gridview.setOnItemClickListener(new OnItemClickListener() {
           public void onItemClick(AdapterView&lt;?&gt; parent, View v, int position, long id) {
  
         Intent intent = new Intent(this, ProductListActivity.class);
            } });
  </code></pre>
  
  <p>But this makes an error and says “The constructor 
  <code>Intent(new AdapterView.OnItemClickListener(){}, Class&lt;ProductListActivity&gt;)</code> is undefined”</p>
  
  <p>Could someone please help me to correct this ? </p>