http://stackoverflow.com/questions/1998400/data-directory-have-no-read-write-permission-in-android
If you're storing small files to do with your application then these can go into the phone's storage and not the SD Card, so use the Context.openFileOutput()
and Context.openFileInput()
methods.
So in your code consider something like:
OutputStream os = openFileOutput("samplefile.txt", MODE_PRIVATE);
BufferedWriter lout = new BufferedWriter(new OutputStreamWriter(os));
'Programming Android' 카테고리의 다른 글
converting pixels to dp in android (0) | 2012.08.15 |
---|---|
젤리빈 로그캣 변경점 (0) | 2012.08.09 |
Understading colors in Android! (6 chars) (0) | 2012.08.02 |
안드로이드 마켓(Play 스토어)에 내 어플 등록하기 (0) | 2012.07.22 |
안드로이드 개발자 등록 방법 (0) | 2012.07.22 |