[android-developers] Re: How I can add an int to an array if the user clicks a button?

2011-09-16 Thread Zwiebel
Thanks, I tried it now. I have a problem, with this: I need to have two arraylists. I declared them. I declared a mine arraylist and an user arraylist with this code: ArrayList mine = new ArrayList(); ArrayList user = new ArrayList(); I want to store in these values, what are

[android-developers] Re: How I can add an int to an array if the user clicks a button?

2011-09-04 Thread Zwiebel
OK thanks for the very fast reply. So If I use ArrayListint array; array = new ArrayList(20); button.setOnClickListener(new View.OnClickOnListener) { @Override public void onClick (View v) { //something to add the button's specified number to the array } } And I use the

Re: [android-developers] Re: How I can add an int to an array if the user clicks a button?

2011-09-04 Thread Mark Murphy
On Sun, Sep 4, 2011 at 1:56 PM, Zwiebel hunzwie...@gmail.com wrote: OK thanks for the very fast reply. So If I use ArrayListint array; array = new ArrayList(20); button.setOnClickListener(new View.OnClickOnListener) { @Override      public void onClick (View v) {