android-project/AndroidManifest.xml
author Sam Lantinga <slouken@libsdl.org>
Fri, 02 Nov 2012 02:37:49 -0700
changeset 6631 47ab7ba21530
parent 6392 fa7eb111f994
child 6632 147f85ac2e4b
permissions -rw-r--r--
Updated the Android project template and README.android
Added information on how to customize your application name and icon.
Added information on using STL with an Android application
Increased the minimum API level to 10, because that's the lowest API
that currently has an emulator image for testing.
     1 <?xml version="1.0" encoding="utf-8"?>
     2 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     3     <!-- Replace org.libsdl.app with the identifier of your game, e.g.
     4          com.gamemaker.game
     5      -->
     6       package="org.libsdl.app"
     7       android:versionCode="1"
     8       android:versionName="1.0"
     9       android:installLocation="auto">
    10 
    11     <!-- Create a Java class extending SDLActivity and place it in a
    12          directory under src matching the package, e.g.
    13          	src/com/gamemaker/game/MyGame.java
    14 
    15         /**********************************************************/
    16 	package com.gamemaker.game;
    17 
    18 	import org.libsdl.app.SDLActivity; 
    19 	import android.os.*; 
    20 
    21 	/* 
    22 	 * A sample wrapper class that just calls SDLActivity 
    23 	 */ 
    24 
    25 	public class MyGame extends SDLActivity { 
    26 	    protected void onCreate(Bundle savedInstanceState) { 
    27 	        super.onCreate(savedInstanceState); 
    28 	    } 
    29 	   
    30 	    protected void onDestroy() { 
    31 	        super.onDestroy(); 
    32 	    } 
    33 	}
    34         /**********************************************************/
    35 
    36          then replace "SDLActivity" in the XML below with the name of
    37          your class, e.g. "MyGame" ...
    38     -->
    39     <application android:label="@string/app_name"
    40                  android:icon="@drawable/icon"
    41 	         android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
    42         <activity android:name="SDLActivity"
    43                   android:label="@string/app_name">
    44             <intent-filter>
    45                 <action android:name="android.intent.action.MAIN" />
    46                 <category android:name="android.intent.category.LAUNCHER" />
    47             </intent-filter>
    48         </activity>
    49     </application>
    50 
    51     <!-- Android 2.1 -->
    52     <uses-sdk android:minSdkVersion="10" /> 
    53 
    54     <!-- OpenGL ES 2.0 -->
    55     <uses-feature android:glEsVersion="0x00020000" /> 
    56 
    57     <!-- Allow writing to external storage -->
    58     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 
    59 </manifest>