티스토리 뷰



안드로이드에서

내부 메모리 / 내장 메모리 / 내부 저장소 / internal storage
외부 메모리 / sdcard

이런거 사용하기 위한 레퍼런스..

http://developer.android.com/guide/topics/data/data-storage.html


걍 간단히 내부 저장소 사용법만 써보자면
예를 들어 test.jpg를 내부 저장소에 쓰고 사용해보자.

내부 저장소에 파일 쓰기
FileOutputStream fos = openFileOutput("test.jpg", Context.MODE_PRIVATE);
fos.write(....); <- 쓰는 과정


내부 저장소에서 파일 경로 읽기
String storage = getFilesDir().toString();
String file = storage + "test.jpg";

해주면 된다~~
댓글
댓글쓰기 폼