I have an APP, which preencho a quantidade de jogadores
will have the championship and I click on a botão
to create the championship.
This button plays for a activity
that takes the amount that was set and gera N EditText
with a loop. So far, okay.
After you have generated these EditText
, I fill in all the names, and I need them when I click on botão
, it will go to another activity
and take the valores
of EditText
. >
The questão
is: how do I pull the valores
of the EditText
, if they are programmatically generated and I need ID
for this ??
Would you be throwing them into an array and then browsing !?
Example of what I use to generate EditText
without the loop for now:
public class MainActivity extends AppCompatActivity {
private LinearLayout ll;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ll = (LinearLayout) findViewById(R.id.layout);
EditText et = new EditText(this);
et.setText("Jogador");
ll.addView(et);
}