Answer the question
In order to leave comments, you need to log in
How to fold selected items into text.?
the selected items in the list should add up to the text, but I only get one of the 2,
please help, I don’t understand where the error is ..
spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
public void onItemSelected(AdapterView<?> parent,
View itemSelected, int selectedItemPosition, long selectedId) {
String[] choose = getResources().getStringArray(R.array.animals);
textMessage.setText(choose[selectedItemPosition]);
}
public void onNothingSelected(AdapterView<?> parent) {
}
});
spinner1.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
public void onItemSelected(AdapterView<?> parent,
View itemSelected, int selectedItemPosition, long selectedId) {
String[] choose1 = getResources().getStringArray(R.array.catlist);
textMessage=(choose1[selectedItemPosition]);
}
public void onNothingSelected(AdapterView<?> parent) {
}
});
Answer the question
In order to leave comments, you need to log in
mail("to", "subj","message") doesn't work?
Then use the Yandex API for example.
In general, a rather vague question.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question