android-project/AndroidManifest.xml
changeset 6631 47ab7ba21530
parent 6392 fa7eb111f994
child 6632 147f85ac2e4b
     1.1 --- a/android-project/AndroidManifest.xml	Fri Nov 02 02:22:32 2012 -0700
     1.2 +++ b/android-project/AndroidManifest.xml	Fri Nov 02 02:37:49 2012 -0700
     1.3 @@ -1,12 +1,44 @@
     1.4  <?xml version="1.0" encoding="utf-8"?>
     1.5  <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     1.6 +    <!-- Replace org.libsdl.app with the identifier of your game, e.g.
     1.7 +         com.gamemaker.game
     1.8 +     -->
     1.9        package="org.libsdl.app"
    1.10        android:versionCode="1"
    1.11 -      android:versionName="1.0">
    1.12 +      android:versionName="1.0"
    1.13 +      android:installLocation="auto">
    1.14  
    1.15 -    <uses-sdk android:minSdkVersion="5" />
    1.16 +    <!-- Create a Java class extending SDLActivity and place it in a
    1.17 +         directory under src matching the package, e.g.
    1.18 +         	src/com/gamemaker/game/MyGame.java
    1.19  
    1.20 -    <application android:label="@string/app_name" android:icon="@drawable/icon">
    1.21 +        /**********************************************************/
    1.22 +	package com.gamemaker.game;
    1.23 +
    1.24 +	import org.libsdl.app.SDLActivity; 
    1.25 +	import android.os.*; 
    1.26 +
    1.27 +	/* 
    1.28 +	 * A sample wrapper class that just calls SDLActivity 
    1.29 +	 */ 
    1.30 +
    1.31 +	public class MyGame extends SDLActivity { 
    1.32 +	    protected void onCreate(Bundle savedInstanceState) { 
    1.33 +	        super.onCreate(savedInstanceState); 
    1.34 +	    } 
    1.35 +	   
    1.36 +	    protected void onDestroy() { 
    1.37 +	        super.onDestroy(); 
    1.38 +	    } 
    1.39 +	}
    1.40 +        /**********************************************************/
    1.41 +
    1.42 +         then replace "SDLActivity" in the XML below with the name of
    1.43 +         your class, e.g. "MyGame" ...
    1.44 +    -->
    1.45 +    <application android:label="@string/app_name"
    1.46 +                 android:icon="@drawable/icon"
    1.47 +	         android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
    1.48          <activity android:name="SDLActivity"
    1.49                    android:label="@string/app_name">
    1.50              <intent-filter>
    1.51 @@ -15,4 +47,13 @@
    1.52              </intent-filter>
    1.53          </activity>
    1.54      </application>
    1.55 +
    1.56 +    <!-- Android 2.1 -->
    1.57 +    <uses-sdk android:minSdkVersion="10" /> 
    1.58 +
    1.59 +    <!-- OpenGL ES 2.0 -->
    1.60 +    <uses-feature android:glEsVersion="0x00020000" /> 
    1.61 +
    1.62 +    <!-- Allow writing to external storage -->
    1.63 +    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 
    1.64  </manifest>