How to perform doubleClick event on an array of button
<p>Actually i have created an array of buttons.Now what i want is on double click of each of the buttons i want to display a toast which show the text of the button which is clicked,I have do it for singleClick but i dont know how to do it for doubleClick.</p>

<p>The code i have written for Array of buttons</p>

<pre><code>LinearLayout layoutVertical = (LinearLayout) findViewById(R.id.liVLayout);
    LinearLayout rowLayout = null;

    LayoutParams param = new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT, 1);

    //Create Button
    for (int i = 0; i&lt;6; i++)
    {
        rowLayout = new LinearLayout(this);
        rowLayout.setWeightSum(7);
        layoutVertical.addView(rowLayout, param);   

        for(int j=0; j&lt;7; j++)
        {
            m_pBtnDay[i][j] = new Button(this);             
            m_pBtnDay[i][j].setGravity(Gravity.CENTER_HORIZONTAL | Gravity.CENTER_VERTICAL);
            rowLayout.addView(m_pBtnDay[i][j], param);

            m_pBtnDay[i][j].setTextSize(12);
            //save button position
            m_pBtnDay[i][j].setTag(new CalendarForm(i , j));
        }
    }
</code></pre>
