전역변수로 선언된 ArrayList

 

public ArrayList<String> Date = new ArrayList<String>();

 

스레드 처리에서 data를 input

 

Date.add(i, r.getString(3)); //resultset으로 db의 컬럼값을 불러온후 add

 

한 후에 값이 저장되는 것은 확인하였습니다.

 

그리고 나서 oncreate에서 Date를 get하려고하니 arraylist의  index값이 잘못되었다고 나오는군요.

 

thread에서 add한 arraylist는 oncreate에서 get할수 없는건가요?