问题描述
|
任何人都可以发布Motorola XOOM清单的综合模板/示例。
我正在使用Flash / Air创建应用程序-如何确保该应用程序只能在平板电脑上运行?
这就是我所拥有的:
<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>
<application xmlns=\"http://ns.adobe.com/air/application/2.5\">
<id>Reverse domain format</id>
<versionNumber>1.0.0</versionNumber>
<filename></filename>
<description></description>
<!-- 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>
-->
<name></name>
<!-- 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>
-->
<copyright>Name</copyright>
<initialWindow>
<content>Invaders_Final.swf</content>
<visible>true</visible>
<fullScreen>true</fullScreen>
<autoOrients>false</autoOrients>
<aspectRatio>landscape or portrait</aspectRatio>
<renderMode>gpu or cpu</renderMode>
</initialWindow>
<customUpdateUI>false or true</customUpdateUI>
<allowbrowserInvocation>false</allowbrowserInvocation>
<icon>
<image36x36>icon36.png</image36x36>
<image48x48>icon48.png</image48x48>
<image72x72>icon72.png</image72x72>
</icon>
<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_FINE_LOCATION\"/>
<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>
<uses-permission android:name=\"android.permission.CAMERA\"/>
<uses-permission android:name=\"android.permission.RECORD_AUdio\"/>
<uses-permission android:name=\"android.permission.disABLE_KEyguard\"/>
<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>
<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>
<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/></manifest>
]]></manifestAdditions>
</android>
<versionLabel></versionLabel>
</application>
解决方法
尝试将其放入清单中
<uses-sdk android:minSdkVersion=\"11\"
android:targetSdkVersion=\"11\"
/>