Skip to main content
Participating Frequently
April 12, 2013
Question

Is it possible to change the application descriptor file?

  • April 12, 2013
  • 3 replies
  • 866 views

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.

This topic has been closed for replies.

3 replies

April 12, 2013

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.

4xyfenixAuthor
Participating Frequently
April 15, 2013

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.

Adobe Employee
April 17, 2013

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#WS180fc5cb46642d10-3a65697f13da2342af2-8000  will help you.

Regards,

Nimit