0
例如,我想寫的文字「ABC」到Android設備上的文本文件,但我只找到如何使用CodenameOne將文件寫入Android外部公共根文件夾?
FileSystemStorage.getInstance().getCachesDir()
:
String filePath=FileSystemStorage.getInstance().getCachesDir()+FileSystemStorage.getInstance().getFileSystemSeparator()+"text.txt";
OutputStream out=FileSystemStorage.getInstance().openOutputStream(filePath);
out.write("abc".getBytes());
我怎樣才能得到Android的外部公衆的路徑根文件夾(例如:其中包含圖片,音樂,...)?