SQLiteDatabase GDpedia_3 = SQLiteDatabase.openDatabase(Environment.getDataDirectory().getAbsolutePath() + "/data/" + getPackageName() + "/databases/gdpedia_3.sqlite", null, SQLiteDatabase.NO_LOCALIZED_COLLATORS);
String[] columns = {"_id","src","name","kind","date","list"};
Cursor c = GDpedia_3.query("album", columns, null, null, null, null, "_id");
int albumcount = c.getCount();
for (int i=1;i<=albumcount;i++) {
// ALBUM Download Start
c.move(i);
DOWN_URL = c.getString(1);
FILE_TARGET = new File(Environment.getDataDirectory().getAbsolutePath() + "/data/" + getPackageName() + "/album/albumimg_" + i + ".jpg");

URL url = null;
InputStream in = null;
FileOutputStream out = null;

int ch=0;

try {
url = new URL("DOWN_URL);
in = url.openStream();
out = new FileOutputStream(FILE_TARGET);

while((ch=in.read()) !=-1) {
out.write(ch);
}
in.close();
out.close();
publishProgress("(" + i + "/" + albumcount + ")" + "albumimg_" + i + ".jpg"); // Output
} catch(Exception e) {
e.printStackTrace();
}// ALBUM Download End

}// For ALBUMs Download End

asynctask를 이용해 작동시키는데
소스가 잘 돌아가다가 갑자기 강제종료가 뜨는데 왜 뜨는지 모르겠어요 소스랑 이미지 파일 경로는 문제 없어요 한 4번째 까지 잘 다운로드 되다가 꺼집니다 ㅠㅠ 도와주세요

아 그리고 또 질문 이 이미지들을 어디다 다운받아야 xml에서 쓸 수 있는 거죠??