Define multiple buttons
<p>Is there a way to define 31 buttons in one action.. Something like this :</p>

<pre><code>    Button but[] = new Button[31];
 for(int i=1;i&lt;32;i++)
 {
     but[i] = (Button) findViewById(R.id.Button0+i ---? );

 }
</code></pre>
