Copy link to clipboard
Copied
Hello,
I would like to have an option in the application: gpu [on/off], but it can't be set in runtime (http://help.adobe.com/en_US/as3/mobile/WS901d38e593cd1bac-3d719af412b2b394529-8000.html).
So, if there is an ability to change or substitute application.xml I would change it and restart the application.
Thanx in advance.
Copy link to clipboard
Copied
application.xml is located in:
File.applicationDirectory ->in "META-INF / AIR" Folder. (on android at least).
Not sure if we are allowed to (over)write files there.
This is basically a self-update of the app, and might circumvent appstores/playstores update guide lines?).
And If you can edit it, im not sure if its taken into account every time the app is restarted, or just once, when the app is installed.
Try it and let me know.
Copy link to clipboard
Copied
It seems there is no way to do this. (
The results are:
I can load the file content, I also can create an XML object from the content, but I can't read from the created XML object, get null or "" (empty string) when read nodes.
When I write to the XML object, new node created instead of changing referenced.
Eventually, when I try to save it back (XML.toXMLString() works) I get the SecurityError violation.
SecurityError: fileWriteResource
at flash.filesystem::FileStream/open()
Obviously "app:/" location doesn't permits writing.
Copy link to clipboard
Copied
Hi,
In case you want to use GPU and CPU rendering for specified iOS devices only, possibly the link http://help.adobe.com/en_US/air/build/WSfffb011ac560372f2fea1812938a6e463-8000.html#WS180fc5cb46642d... will help you.
Regards,
Nimit