--- a/android-project/AndroidManifest.xml Fri Nov 02 02:22:32 2012 -0700
+++ b/android-project/AndroidManifest.xml Fri Nov 02 02:37:49 2012 -0700
@@ -1,12 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<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: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
+
+ /**********************************************************/
+ package com.gamemaker.game;
+
+ import org.libsdl.app.SDLActivity;
+ import android.os.*;
+
+ /*
+ * A sample wrapper class that just calls SDLActivity
+ */
- <uses-sdk android:minSdkVersion="5" />
+ public class MyGame extends SDLActivity {
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ }
+
+ protected void onDestroy() {
+ super.onDestroy();
+ }
+ }
+ /**********************************************************/
- <application android:label="@string/app_name" android:icon="@drawable/icon">
+ then replace "SDLActivity" in the XML below with the name of
+ your class, e.g. "MyGame" ...
+ -->
+ <application android:label="@string/app_name"
+ android:icon="@drawable/icon"
+ android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
<activity android:name="SDLActivity"
android:label="@string/app_name">
<intent-filter>
@@ -15,4 +47,13 @@
</intent-filter>
</activity>
</application>
+
+ <!-- Android 2.1 -->
+ <uses-sdk android:minSdkVersion="10" />
+
+ <!-- OpenGL ES 2.0 -->
+ <uses-feature android:glEsVersion="0x00020000" />
+
+ <!-- Allow writing to external storage -->
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
</manifest>