-5

入力オプション リストに取り組んでいますが、結果の一部を入力ではなくドロップダウン リストから入力する方法が見つかりません。どうすればよいですか?

strSystolicBloodPressure =etSystolicBloodPressure.getText().toString();
strDiastolicBloodPressuretDiastolicBloodPressure.getText().toString();
strTemperatureCelcius = etTemperatureCelsius.getText().toString();
strSmokingType = etSmokingType.getText().toString();
strSmokingAmount = etSmokingAmount.getText().toString();
strCurrentSmoker = etCurrentSmoker.getText().toString();
strTimeSmoking = etTimeSmoking.getText().toString();
strGenetics = etGenetics.getText().toString();
strRace = etRace.getText().toString();
strSymptoms = etSymptoms.getText().toString();

int age = Integer.valueOf(strAge);
int sex = Integer.valueOf(strSex);
int bmi = Integer.valueOf(strBMI);
int systolic_blood_pressure = Integer.valueOf(strSystolicBloodPressure);
int diastolic_blood_pressure = Integer.valueOf(strDiastolicBloodPressure);
int temperature_celsius = Integer.valueOf(strTemperature);
int smoking_type = Integer.valueOf(strSmokingType);
int smoking_amount = Integer.valueOf(strSmokingAmount);
int current_smoker = Integer.valueOf(strCurrentSmoker);
int time_smoking = Integer.valueOf(strTimeSmoking);
int genetics = Integer.valueOf(strGenetics);
int race = Integer.valueOf(strRace);
int symptoms = Integer.valueOf(strSymptoms);
4

1 に答える 1