I am making an android app that needs the user to enter a 4 digit pin from the buttons I made and later on confirm the pin. I figured I would be able to store the pin as an array.
My question is, how do I store the button pressed?
Here is what I have come up with so far
public class EnterPin extends Activity
{
public int[] pin = new int[4];
public void PinEnterd(View view)
{
int i;
for(i = 0; i < 4; i++ )
{
pin =
}
}
}