Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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>
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more