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

Android application.xml

Engaged ,
Oct 20, 2010 Oct 20, 2010

Sorry for the cross post but I'm currently having problems  getting a flash build on to an android device. Upon publishing I get the  error "Warning: Application has not specified its permission  requirements in application.xml" Does Flash CS5 spew out application.xml  (under air for aindroid) or do I need to create it manually first?

Cheers

TOPICS
Development
16.6K
Translate
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
Community Beginner ,
Oct 23, 2010 Oct 23, 2010

Problem can be solved by uncommenting following code in application descriptor

  <android>
  <manifestAdditions>
          <![CDATA[
              <manifest android:installLocation="auto">
                  <uses-permission android:name="android.permission.INTERNET"/>
                  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
                  <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
                  <uses-configuration android:reqFiveWayNav="true"/>
                  <supports-screens android:normalScreens="true"/>
                  <uses-feature android:required="true" android:name="android.hardware.touchscreen.multitouch"/>
                  <application android:enabled="true">
                      <activity android:excludeFromRecents="false">
                          <intent-filter>
                        <action android:name="android.intent.action.MAIN"/>
                        <category android:name="android.intent.category.LAUNCHER"/>
                          </intent-filter>
                      </activity>
                  </application>
              </manifest>
          ]]>
      </manifestAdditions>
    </android>

Translate
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
Mentor ,
Oct 26, 2010 Oct 26, 2010

That's a warning, not an error. You aren't required to specify permissions, but some features won't work if you don't specify the relevant permission. You can set most permissions in the lastest AIR Android extension directly. You don't need to edit the application descriptor manually.

See http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-5d0f4f25128cc9cd0cb-8000.html

Translate
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
Dec 20, 2010 Dec 20, 2010

Is it necessary to fix/address the warning? Here's what's happening: I successfully created an APK package and installed it on the device. However when I click to open it, the app closes as soon as it opens.

Translate
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
Engaged ,
Dec 20, 2010 Dec 20, 2010

just for the record, how do you edit the application descriptor manually? Using the flash cs5 extention, its made automatically. Would i use something else to open, edit, and recompile the apk?

Translate
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
Engaged ,
Dec 20, 2010 Dec 20, 2010

Hi,

You can edit the xml file in any standard text editor. Make sure when you

save it that the file has the same .xml extension (some text editors may

rename it to .txt or something). Also, when you edit the .xml file outside

of Flash CS5 and then re-open the AIR Android properties inside Flash CS5,

the xml will be overwritten.

iBrent

Translate
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
Engaged ,
Dec 23, 2010 Dec 23, 2010

Hi,

I was wondering not how to edit the xml, but how to get access to it. When exported from flash CS5 the xml is embedded in the .apk file right? I often see talk about manually editing the xml. My question is, would you have to open the apk, edit the xml, then zip it back up somehow?

thanks

Translate
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
Mentor ,
Dec 23, 2010 Dec 23, 2010

You would edit the file before exporting/publishing the app as an APK. The file is saved in the same directory as the FLA file. Be sure that the Flash CS AIR Android property dialog is closed, otherwise, Flash will overwrite any changes you make manually.

Translate
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
Sep 23, 2011 Sep 23, 2011

I believe this file is automagically generated, and it's usually named something like YourSwf-app.xml, not application.xml. When you build an Air app one is written for you but it's settings may not include those needed for your app. The XML is packaged into the apk and used by both the air player and android os to determine runtime permissions and functionality.

Translate
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 ,
Dec 17, 2014 Dec 17, 2014

I know it's late but others may have the same question

make sure you download the latest AIR SDK

I downloaded version 15

in adobe flash professional

     open Help Menu -> Manage AIR SDK

     click ADD NEW SDK

     specify the folder where you downloaded the latest AIR SDK and click OK

     open File Menu -> publish setting

     in  target combo box I chose AIR 15 Android

Translate
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 ,
Feb 28, 2017 Feb 28, 2017
LATEST

Go into public settings and then on target: air 21.0 for android and then click on the + symbol and add the xml file that you want to use with the game to package together, if that is the doubt.

Translate
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