Open external content on Air As3 App
Hello everyone!
Since Wednesday i keep searching for the solution of a problem.
My app loads a document from the smartphone SD Card, with this code:
var file_lista:File=File.documentsDirectory.resolvePath("/sdcard/lista.xml");
var fileStream:FileStream = new FileStream();
try {
fileStream.open(file_lista, FileMode.READ);
texto.text="Filestream activado";
} catch(e:Error) {
texto.text=e.message;
}
It gives me the error 3001 - Folder or file acess denied, but i have already written the permission on manifest:
<manifestAdditions><![CDATA[<manifest>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
</manifest>]]></manifestAdditions>
</android>
And it continues to give me that error.
I can't find what's going on.
Can you help me?
