Android studio "do while" to choose the variable created in the MainActivity -


i trying automated android program open website listed in variables. please review program shown in photo.

my program not success operation due error on highlighted area, not sure code can use combine string.

photo

you can use string array -

string var[] = new string[4]; var[0]="www..."; var[1]="www..."; var[2]="www..."; var[3]="www..."; 

and use

intent browserintent1 = new intent(intent.action_view, uri.parse(var[i])); 

Comments