1
2
3
4
5
6
7
8
9
10
11
12
13
14
//리스트 뷰 정의 
ListView listview= (ListView) findViewById(android.R.id.list);
//해당 경로를 설정하여 파일배열에 입력
File[] listFiles =(new File("/sdcard/camera/image").listFiles());
 
//넣어준 스트링을 리스트에 추가 해 줍니다.
List<String> listarray = new ArrayList<String>();
for( File file : listFiles )
listarray.add(file.getName());
//리스트에 뿌려줌
//셀력트는 임의 설정
ArrayAdapter<String> fileLists = new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,list);
//아답터에 셋팅
listview.setAdapter(fileList);

List of Articles
번호 분류 제목 글쓴이 조회 수
5 안드로이드 Permission 종류 운영자 95228
» 안드로이드 sdcard에서 파일 읽어와 리스트 뷰로 출력 운영자 6751
3 안드로이드 [Android 외장메모리] Android 외장메모리 접근 운영자 8104
2 안드로이드 [Android Code] 특정 패키지 설치여부 확인 운영자 36444
1 안드로이드 Design Guide file 운영자 5481
Board Pagination Prev 1 Next
/ 1

Our Location

서울특별시 용산구 원효로 90길 11,
101동 B203호 용산비지니스센터 오피스 12
101Dong B203 Office 12, Wonhyoro90Gil 11, Yosangu, Seoul, Korea

Get Direction

Opening hour

Mon-Fri (9:00-18:00)
Sat-Sun (Closed)

Drop a message

Mail : solution317@solution317.com

Mail Us

Phone : +82 (0)10-4653-6056