How can I get button name, inside onClick method
<p>How to get text pressed button, inside <code>onClick</code> method.
I can't use variable, cause it will change. </p>

<pre><code>  Button[] mButtonsArray = new Button[MyArrayList.size()];
        for (Button b : mButtonsArray) 
        {
b = new Button(this);
            b.setText("name");
            b.setOnClickListener(
                    new OnClickListener() 
                    {
                        @Override
                        public void onClick(View arg0) 
                        {
                            MyClass.MyMethod(ButtonName);
                        }
                });
}
</code></pre>
