I am developing an android attendance system in which the user enters the total number(int) of students in a class in Main_Activity and that many numbers of buttons are created in 2nd activity. How can I use the user input to create a list of buttons (used to mark present or absent) during runtime.
Code to save Int value
EditText total_roll_Name = (EditText) findViewById(R.id.roll_total_input);
String total_roll_text = total_roll_Name.getText().toString();
i.putExtra("totalRoll", total_roll_text);