你好 evrey 身体我已经非常努力地将文件写入 android 并且到目前为止没有 secceus。这是我正在使用的代码。
function writeAirFile():void
{
// Change the folder path to whatever you want plus name your mp3
// If the folder or folders does not exist it will create it.
var file:File = new File("/mnt/sdcard/new/new.apk");
//file.nativePath = "/mnt/sdcard/new/new.apk";
trace(file.nativePath);
fileStream.open(file, FileMode.WRITE);
fileStream.writeBytes(fileData, 0, fileData.length);
fileStream.close();
trace("The file is written.");
trace(file.nativePath);
}
uts需要工作,但事实并非如此。我已经添加了本地存储写作的权限,请我需要帮助,非常感谢大家的帮助!