How can i add eventListener on TabListener?
<p>I am working in android. I am designing a <code>TabHost</code>, in which I want to add <code>onclickListener()</code>.<br>
So by selecting a particular tab i can display the list of songs.</p>

<p>This is my code for create a <code>TabHost</code>:</p>

<pre><code>int number_of_tab=number_of_records/4;
        for(int i=0;i&lt;number_of_tab;i++)
        {
        intent = new Intent().setClass(this,Latest_MyActivity.class);
        intent.putExtra("EX_START_POINT", i);
        Log.v(TAG,"---album activity is called---" + "---the value of i---" + i);
        spec = tabHost.newTabSpec(i+"").setIndicator("Albums",res.getDrawable(R.drawable.ic_tab_albums)).setContent(intent);
        tabHost.addTab(spec);
        Log.v(TAG,"---tabHost.getCurrentTabTag()---&gt;&gt;"+tabHost.getCurrentTabTag());

        } 
</code></pre>

<p>I want to know eventListener, so please suggest the code for that.</p>

<p>This is another function which is exist in second class:</p>

<pre><code> void makeListOfSongs()
    {

                 Bundle extras=getIntent().getExtras();
         display_tag=extras.getInt("EX_START_POINT");
         for (int i = display_tag*10; i &lt; display_tag+5; i++) {
            musicid[i] = new TextView(this);
            musicid[i].setText("Music Id = "+sitesList.getMusicId().get(i));

            title[i] = new TextView(this);
            title[i].setText("Title = "+sitesList.getTitle().get(i));
            title_of_song[i]=sitesList.getTitle().get(i);

            layout.addView(musicid[i]);
            layout.addView(title[i]);

        }
</code></pre>

<p>So if i select the first tab then list of song from 10 to 15 should display in list, if i select tab 2 then song from 20 to 25 should show in the list. So please suggest me what should i do to make such type of event Listener on the tabhost. </p>

<p>Thank you in advance...</p>
