어쨋든 ArrayList<String> getVideoFolder에 폴더의 이름이 있으면
쿼리문날릴때 Media의 데이터를 가져오려면 ArrayList를 써서 Add시켜야 하는데..idx로 for문에 증가값 i 를 쓰시면 되는거아닌가요..
예를들면
쿼리문에 뽑아온값을 cursor로 돌리면서 ArrayList에 넣는다고치면..
class VideoData{
int idx;
String name;
String data;
}
ArrayList<VideoData> aa = new ArrayList<VideoData>;
int i = 0;
for (cursor.moveToFirst(); !cursor.isAfterLast(); cursor.moveToNext()) {
VideoData data = new VideoData();
data.idx = i;
data.name = cursor.getString(번호);
data.data = cursor.getString(번호);
aa .add(data);
i++;
}