我正在尝试将revmob添加到我在Flash CC中制作的Android应用程序中。我正在按照有关如何添加它的分步指南进行操作。 http://sdk.revmobmobileadnetwork.com/air.html
我有一个单独的actionscript文件,用于调用广告。但我无法正确获取我的xml文件。每次我尝试添加他们的活动。我要么无法找到无效元素或应用程序描述符。
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<!--
Usage:
To localize the description, use the following format for the description element.
<description>
<text xml:lang="en">English App description goes here</text>
<text xml:lang="fr">French App description goes here</text>
<text xml:lang="ja">Japanese App description goes here</text>
</description>
To localize the name, use the following format for the name element.
<name>
<text xml:lang="en">English App name goes here</text>
<text xml:lang="fr">French App name goes here</text>
<text xml:lang="ja">Japanese App name goes here</text>
</name>
-->
<application xmlns="http://ns.adobe.com/air/application/13.0">
<id>KatanaRun</id>
<versionNumber>1.7.2</versionNumber>
<versionLabel>1.7</versionLabel>
<filename>Katana Run</filename>
<description/>
<name>Katana Run</name>
<copyright/>
<initialWindow>
<content>KatanaRun3.swf</content>
<systemChrome>standard</systemChrome>
<transparent>false</transparent>
<visible>true</visible>
<fullScreen>true</fullScreen>
<aspectRatio>landscape</aspectRatio>
<renderMode>gpu</renderMode>
<autoOrients>false</autoOrients></initialWindow>
<icon>
<image36x36>KatanaRunImages/36x36IconBURNED.png</image36x36>
<image48x48>KatanaRunImages/48x48IconBURNED.png</image48x48>
<image72x72>KatanaRunImages/72x72IconBURNED.png</image72x72>
<image96x96>KatanaRunImages/96x96IconBURNED.png</image96x96>
</icon>
<customUpdateUI>false</customUpdateUI>
<allowBrowserInvocation>false</allowBrowserInvocation>
<android>
<manifestAdditions><![CDATA[<manifest>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
</manifest>]]></manifestAdditions>
</android>
<extensions>
<extensionID>com.revmob.airextension</extensionID>
</extensions>
</application>
这是我目前的xml文件代码。 我需要帮助找出添加这些线的位置。 至少我很确定如果有人能帮助我更多地告诉我什么是我做错了那就太好了,这是什么不起作用。
<manifestAdditions>
<![CDATA[
<manifest android:installLocation='auto'>
<uses-permission android:name="android.permission.INTERNET"/>
<application android:enabled="true">
<activity android:name="com.revmob.ads.fullscreen.FullscreenActivity"
android:configChanges="keyboardHidden|orientation">
</activity>
</application>
</manifest>
]]>
</manifestAdditions>
<application>
<activity android:name="com.revmob.ads.fullscreen.FullscreenActivity"
android:theme="@android:style/Theme.Translucent"
android:configChanges="keyboardHidden|orientation">
</activity>
</application>
答案 0 :(得分:0)
您是否看过他们的文档网站:http://sdk.revmobmobileadnetwork.com/air.html?
在那里,您可以看到他们的RevMobSampleApp-app.xml。他们这样做的方式是:
<icon></icon>
<android>
<manifestAdditions>
<![CDATA[
<manifest android:installLocation='auto'>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<application android:enabled="true">
<activity android:name="com.revmob.ads.fullscreen.FullscreenActivity"
android:configChanges="keyboardHidden|orientation">
</activity>
</application>
</manifest>
]]>
</manifestAdditions>
</android>
它有效!