Thursday, October 7, 2010

Manifest for Air Application and Android

While I am package androd app for air, I got error of invalid attribute on application manifest file. After I googled it, I found the below fix

Incorrect Manifest of Air Application and Android

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<android>
<manifestAdditions>
<manifest>
<![CDATA[ 
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
]]> 
</manifest>
</manifestAdditions>
</android>
<id>VoiceNotes</id>
<filename>VoiceNotes</filename>
<name>Voice Notes</name>
<versionNumber>1.0.0</versionNumber>
<supportedProfiles>mobileDevice</supportedProfiles>
<initialWindow>
<content>VoiceNotes.swf</content>
<visible>true</visible>
<!-- <autoOrients>true</autoOrients> -->
</initialWindow>
</application>


Updated Manifest of Air application and Andorid

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<android>
    <manifestAdditions>
    <![CDATA[
    <manifest android:installLocation="auto">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    </manifest>
    ]]>
    </manifestAdditions>
</android>

<id>VoiceNotes</id>
<filename>VoiceNotes</filename>
<name>Voice Notes</name>
<versionNumber>1.0.0</versionNumber>
<supportedProfiles>mobileDevice</supportedProfiles>
<initialWindow>
<content>VoiceNotes.swf</content>
<visible>true</visible>
<!-- <autoOrients>true</autoOrients> -->
</initialWindow>
</application>

2 comments:

  1. Thank you! After hours of troubleshooting, this was my solution =).

    ReplyDelete