2013-06-19 77 views
0

我使用活躍的PDF爲flex應用程序pdf導出,它在flash builder 4.6工作正常,但ı嘗試在android手機(HTC感覺xe)活着PDF不保存到PDF文件。我在等待幫助。PDF保存Android手機與alivePdf(Flex)

這是我的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

據我所知,您需要WRITE_EXTERNAL_STORAGE權限設置爲你的應用程序的XML描述文件(yourAppName-app.xml中)

<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>