title: How to get EditText ID
body: <p>I have added some EditTexts using a loop,</p>
  
  <p>textFieldsLayout = (LinearLayout) findViewById(R.id.LinearLayout2);</p>
  
  <pre><code>    for(int i=1; i &lt;= 8; i++){
  
          final EditText ed = new EditText(this);
  
          ed.setText("" + i);
  
          ed.setInputType(2);
  
          ed.setLayoutParams(lparams);
  
          textFieldsLayout.addView(ed);
      }   
  }
  </code></pre>
  
  <p>After this I want to get the text that the user adds into the EditText fields, but I am stuck on how to do this. How would I get an Id for each of these EditText Fields?</p>
  
  <p>Thanks, Oli</p>