• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Is it possible to change the application descriptor file?

New Here ,
Apr 12, 2013 Apr 12, 2013

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.

TOPICS
Development

Views

774

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 12, 2013 Apr 12, 2013

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 15, 2013 Apr 15, 2013

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Apr 17, 2013 Apr 17, 2013

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines