2011-01-06 17:12:31 -08:00
|
|
|
<?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
|
|
|
|
-->
|
2011-01-06 17:12:31 -08:00
|
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
package="org.libsdl.app"
|
|
|
|
android:versionCode="1"
|
2012-11-02 02:37:49 -07:00
|
|
|
android:versionName="1.0"
|
|
|
|
android:installLocation="auto">
|
2012-08-11 10:15:59 -07:00
|
|
|
|
2012-11-02 02:37:49 -07:00
|
|
|
<!-- 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
|
2012-08-11 10:15:59 -07:00
|
|
|
|
2012-11-02 03:03:55 -07:00
|
|
|
then replace "SDLActivity" with the name of your class (e.g. "MyGame")
|
|
|
|
in the XML below.
|
2012-11-02 02:37:49 -07:00
|
|
|
|
2013-06-09 11:58:31 +02:00
|
|
|
An example Java class can be found in README-android.txt
|
2012-11-02 02:37:49 -07:00
|
|
|
-->
|
|
|
|
<application android:label="@string/app_name"
|
2013-04-02 07:55:25 -07:00
|
|
|
android:icon="@drawable/ic_launcher"
|
2013-05-10 21:19:40 +02:00
|
|
|
android:allowBackup="true"
|
|
|
|
android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
|
2011-01-06 17:12:31 -08:00
|
|
|
<activity android:name="SDLActivity"
|
2013-11-06 11:23:24 -03:00
|
|
|
android:label="@string/app_name"
|
|
|
|
android:configChanges="keyboardHidden|orientation"
|
|
|
|
>
|
2011-01-06 17:12:31 -08:00
|
|
|
<intent-filter>
|
|
|
|
<action android:name="android.intent.action.MAIN" />
|
|
|
|
<category android:name="android.intent.category.LAUNCHER" />
|
|
|
|
</intent-filter>
|
|
|
|
</activity>
|
|
|
|
</application>
|
2012-11-02 02:37:49 -07:00
|
|
|
|
2013-03-04 10:39:21 -03:00
|
|
|
<!-- Android 2.3.3 -->
|
2013-11-05 20:07:39 -03:00
|
|
|
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="12" />
|
2012-11-02 02:37:49 -07:00
|
|
|
|
|
|
|
<!-- OpenGL ES 2.0 -->
|
|
|
|
<uses-feature android:glEsVersion="0x00020000" />
|
|
|
|
|
|
|
|
<!-- Allow writing to external storage -->
|
|
|
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
2011-01-06 17:12:31 -08:00
|
|
|
</manifest>
|