title: On Item Click Listener for List View extending ArrayAdapter
body: <p><strong>What I have tried:</strong></p>
  
  <pre><code>public class EntryAdapter extends ArrayAdapter&lt;Item&gt; {
  
  private Context context;
  private ArrayList&lt;Item&gt; items;
  private LayoutInflater vi;
  
  public EntryAdapter(Context context,ArrayList&lt;Item&gt; items) {
      super(context,0, items);
      this.context = context;
      this.items = items;
      vi = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  }
  
  @Override
  public View getView(int position, final View convertView, ViewGroup parent) {
  
      // // // //  NON-FUNCTIONING CODE BELOW 
  
      AdapterView.OnItemClickListener listener = new AdapterView.OnItemClickListener() {
  
          @Override
          public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
  
              Intent intent = new Intent(getContext(), NewsItemActivity.class);
              convertView.getContext().startActivity(intent);
  
          }
      };
  }
  </code></pre>
  
  <p>The <code>AdapterView.onItemClickListener</code> doesnt yield any errors but doesnt seem to function whatsoever.</p>
  
  <p>What is the proper way of setting this onClick Listener?</p>
  
  <p><strong>Note:</strong> I have to set it in this adapter class, not the main class for my own reasons. </p>