我正在处理一个输入选项列表,但我找不到一种方法可以通过下拉列表输入我的一些结果,而不是我输入。我该怎么办?
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);