I was wondering how to make a code to let the user input values into a dynamic array, so lets say the first box the user enters 5, this will be the array length, then he enters another 5 numbers for the array, how do I make this dynamic, instead of assuming the array length will always be 5? and what do we use to enter the data, EditText? if so, does the EditText go inside a loop like :
for(i=0;i<arrlength;i++)
{
arr[i] = (EditText)findViewById(R.id.txtbound);
}
would this be how I retrieve the data from the user? and after the user enters the specified values, in this case 5 values, how do we enter new screen? should I put a :
if(i == arrlength) startActivity(i);
inside the for loop?
Any help would be greatly appreciated