SDL-mirror/android-project/AndroidManifest.xml

44 lines
1.6 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
Fixed bug 1711 - Comment in "manifest" element within android-project/AndroidManifest.xml is the source of troubles ny00@outlook.com Let me quote the following opening tag from android-project/AndroidManifest.xml: <manifest xmlns:android="http://schemas.android.com/apk/res/android" <!-- Replace org.libsdl.app with the identifier of your game, e.g. com.gamemaker.game --> package="org.libsdl.app" android:versionCode="1" android:versionName="1.0" android:installLocation="auto"> The comment (with the text "Replace org.libsdl.app with...") seems to be a cause of troubles. Here are a few examples I've spotted: 1) While using nkd-build from android-ndk-r8d, I receive the following error: Invalid attribute name: <!-- replace org.libsdl.app with the identifier of your game, e.g. com.gamemaker.game -- /home/ny00123/util/android-ndk-r8d/build/gmsl/__gmsl:512: *** non-numeric second argument to `wordlist' function: ''. Stop. 2) Repeating this but with android-ndk-r6b (an earlier revision), it reduces to a warning and actual complication is not halted. 3) Following the instructions in README.android and using Eclipse (from a recently downloaded ADT Bundle), I cannot seem to be able to create an Android project from existing sources (one of the SDL test apps for now). * On a side note, I can't find where I may choose the "Build Target" before clicking "Finish", but it does not seem to be related to this bug report. Anyway, following the choice of the project path and a click on "Finish", nothing seems to occur. If I rather do so after removing the above comment from AndroidManifest.xml, though, the project appears on Eclipse as expected once I click on "Finish".
2013-02-08 01:12:48 -08:00
<!-- Replace org.libsdl.app with the identifier of your game below, e.g.
com.gamemaker.game
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.libsdl.app"
android:versionCode="1"
android:versionName="1.0"
android:installLocation="auto">
<!-- Create a Java class extending SDLActivity and place it in a
directory under src matching the package, e.g.
src/com/gamemaker/game/MyGame.java
then replace "SDLActivity" with the name of your class (e.g. "MyGame")
in the XML below.
An example Java class can be found in README-android.txt
-->
<application android:label="@string/app_name"
android:icon="@drawable/ic_launcher"
android:allowBackup="true"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
<activity android:name="SDLActivity"
android:label="@string/app_name"
android:configChanges="keyboardHidden|orientation"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<!-- Android 2.3.3 -->
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="12" />
<!-- OpenGL ES 2.0 -->
<uses-feature android:glEsVersion="0x00020000" />
<!-- Allow writing to external storage -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
</manifest>