title: how to get an ID from a button calling with for loop
body: <p>I want to get the id from buttons calling with for loop from the XML​ </p>
  
  <pre><code> favTNitem[i].setOnClickListener (new AdapterView.OnItemClickListener(){
  
  public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id){
  
  //log my id number
                                  Log.d("miButton",""+id);
                          });
  </code></pre>