1) 仮想SDカードの作成
$ mksdcard 2048M mycard
2) エミュレータ起動時パラメータ
$ emulator -sdcard mycard
3) 入出力ソース
==================================================
StringFILE
="/sdcard/test.txt";
try{
BufferedWriterbw
=newBufferedWriter(newOutputStreamWriter(
newFileOutputStream(FILE,true),"UTF-8"));
bw.write("this is
android\n");
bw.close();
}catch(UnsupportedEncodingExceptione){
e.printStackTrace();
}catch(FileNotFoundExceptione){
e.printStackTrace();
}catch(IOExceptione){
e.printStackTrace();
}
==================================================