충돌이 경우 제대로 벡터의 각 요소를 얻는 방법 는 벡터 함수에 의해 반환되는
String url = "", num = "", lang = "";
ConfigDb confdb = new ConfigDb(getApplicationContext());
Vector<Config> configs = confdb.getConfigVector();
int nb = configs.size();
for (int i=0; i<nb; i++) {
Config cfg = (Config)configs.get(i); // this causes bug which stopped the app
if (cfg.getConfigId() == "cfg.url") {
url = cfg.getConfigValue();
}
else if (cfg.getConfigId() == "cfg.number") {
num = cfg.getConfigValue();
}
else if (cfg.getConfigId() == "cfg.lang") {
lang = cfg.getConfigValue();
}
}
?
어떤 오류가 발생합니까? 왜 ArrayList가 아닌 Vector를 사용합니까? –
로그 캣이 비어 있습니다! 좋아, ArrayList로 시도 할 것입니다 – pheromix
arraylist와 동일한 문제! – pheromix