我正在使用live pdf for flex application pdf export,它在flash builder 4.6上正常工作但是我尝试在android手机上(HTC sensation xe)live pdf不保存到pdf文件。我在等待帮助。
这是我的pdf导出源:
var f:File = File.applicationStorageDirectory.resolvePath('chart.pdf');
var fs:FileStream = new FileStream();
fs.open(f,FileMode.WRITE);
fs.writeBytes(pdf.save(Method.LOCAL));
trace('SAVE FILE: '+f.nativePath);
fs.close();
答案 0 :(得分:0)
AFAIK您需要为应用程序XML描述符文件(yourAppName-app.xml)设置WRITE_EXTERNAL_STORAGE权限
<android>
<manifestAdditions><![CDATA[
<manifest>
<!-- See the Adobe AIR documentation for more information about setting Google Android permissions -->
...
...
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
...
...
</manifest>
]]></manifestAdditions>
</android>