your discovered buttons in another array and then process them in a
Think about how SimpleCursorAdapter is doing what it does.
Take a look at the constructor.
On Apr 30, 9:46 am, "angushir...@googlemail.com"
> Dear all,
> I'm implementing an app that has 12 buttons placed in a
> grid. When one is pressed, the number that the button displays
> (through button.getText()) has to be retrieved and passed to a common
> method. I've gone down the route of implementing OnClickListener e.g.
> public class WordRecall extends Activity implements OnClickListener
> and then overriding public void onClick(View v) to handle events.
> However, what I want to avoid is having to repeat the following lines
> 12 times :
> Button btn4Button = (Button)findViewById(R.id.fourWords);
> Is there a way in Android 1.5 of avoiding this as there is in 1.6?
> Am I better off using 1.6 for development instead of 1.5?
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to email@example.com
> To unsubscribe from this group, send email to
> For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to firstname.lastname@example.org
To unsubscribe from this group, send email to
For more options, visit this group at