Dynamic Array input
<p>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 :</p>

<pre><code>  for(i=0;i&lt;arrlength;i++)
  { 
    arr[i] = (EditText)findViewById(R.id.txtbound);
  }
</code></pre>

<p>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 :</p>

<pre><code>if(i == arrlength) startActivity(i);
</code></pre>

<p>inside the for loop? </p>

<p>Any help would be greatly appreciated</p>
