Problems taking data from different TextView

0

num is a number that tells me how many textView and spinners are in use cadenaN is where I am taking the data of the spinner and chain T is where I want to store the data of textView . I have several textView with the name tvT1, tvT2,tvT3... etc depending on num. They all have data that I want to save so I thought I would use a for .

for (int i=1;i<=num;i++){<br/>
   cadenaN = String.valueOf(sp1.getItemAtPosition(i+1));<br/>
   cadenaT= String.valueOf(tvT1.getText().toString());<br/>
   helper1.Insertar_Carrera(fec,cadenaN,cadenaT);<br/>
}<br/>

Someone could help me solve it or can you tell me if it is my idea that is wrong. Thank you very much

    
asked by Sofi Díaz 07.08.2018 в 05:16
source

0 answers