title: How to make more than one listview respond for different onItemClickListener?
body: <p>I'm using 4list views with class extending Activity. I have to perform different list item click function. Can i use the following method code for it? So how to set a single <code>onItemClickListener</code> for multiple <code>ListViews</code>?</p>
  
  <pre><code>   public void onItemClick(AdapterView&lt;?&gt; adapter, View view, int index, long id)
     { 
         switch(view.getId())
         {
            case &lt;listview1 Id&gt; : //call method 1; break;
  
            case &lt;listview2 Id&gt; : //call method 2; break;
  
            case &lt;listview3 Id&gt; : //call method 3; break;
         }
     }
  </code></pre>