title: ListView onItemClick not working in the Activity
body: <p>When i am using this in the activity which has the ListView, it didn't work.</p>
  
  <pre><code>usersList.setOnItemClickListener(new AdapterView.OnItemClickListener() {
  
      public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1, int arg2,
              ong arg3) {
      try {
          Intent intent = new Intent(UsersListActivity.this,
                  UserActivity.class);
          startActivity(intent);
          } catch (Exception e) {
              e.printStackTrace();
          }
      }
  });
  </code></pre>
  
  <p>after searching for a solution i ended up doing it in the <code>getView()</code> of the <strong>Adapter</strong></p>
  
  <pre><code>convertView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
  
      public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1, int arg2,
              ong arg3) {
      try {
          Intent intent = new Intent(mActivity,
                  UserActivity.class);
          mActivity.startActivity(intent);
          } catch (Exception e) {
              e.printStackTrace();
          }
      }
  });
  </code></pre>
  
  <p>This works. But why such strange behavior. Why isn't it working the way it should.</p>
  
  <p>Thank You</p>