//??????????????????? please help: I do not ,what to do???????
// the value playerUsername comes of response, but because the value playerUsername is late here and causes the value of Y to //be null
final ArrayList Y = playerUsername;
PlayerRepo playerRepo=new PlayerRepo(this);
final ArrayList items3 = new ArrayList<>();
//choise items for play(complete prscess):
for(int i=0 ; i<Y.size();i++) {
items3.add(Y.get(i).getUsername());
}
final String emp = "Please select a player for the tourney:";
items3.add(0, emp);
final ArrayAdapter adapter2 = new ArrayAdapter(this, android.R.layout.simple_spinner_dropdown_item, items3);
``
/// *** playerUsername.add(playermodel); }
//??????????????????? please help: I do not ,what to do??????? // the value playerUsername comes of response, but because the value playerUsername is late here and causes the value of Y to //be null final ArrayList Y = playerUsername;
PlayerRepo playerRepo=new PlayerRepo(this);
final ArrayList items3 = new ArrayList<>();
//choise items for play(complete prscess):
for(int i=0 ; i<Y.size();i++) {
items3.add(Y.get(i).getUsername());
}
final String emp = "Please select a player for the tourney:";
items3.add(0, emp);
final ArrayAdapter adapter2 = new ArrayAdapter(this, android.R.layout.simple_spinner_dropdown_item, items3);
``