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.
slouken@4965
     1
<?xml version="1.0" encoding="utf-8"?>
slouken@4965
     2
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
slouken@6631
     3
    <!-- Replace org.libsdl.app with the identifier of your game, e.g.
slouken@6631
     4
         com.gamemaker.game
slouken@6631
     5
     -->
slouken@4965
     6
      package="org.libsdl.app"
slouken@4965
     7
      android:versionCode="1"
slouken@6631
     8
      android:versionName="1.0"
slouken@6631
     9
      android:installLocation="auto">
slouken@6392
    10
slouken@6631
    11
    <!-- Create a Java class extending SDLActivity and place it in a
slouken@6631
    12
         directory under src matching the package, e.g.
slouken@6631
    13
         	src/com/gamemaker/game/MyGame.java
slouken@6392
    14
slouken@6631
    15
        /**********************************************************/
slouken@6631
    16
	package com.gamemaker.game;
slouken@6631
    17
slouken@6631
    18
	import org.libsdl.app.SDLActivity; 
slouken@6631
    19
	import android.os.*; 
slouken@6631
    20
slouken@6631
    21
	/* 
slouken@6631
    22
	 * A sample wrapper class that just calls SDLActivity 
slouken@6631
    23
	 */ 
slouken@6631
    24
slouken@6631
    25
	public class MyGame extends SDLActivity { 
slouken@6631
    26
	    protected void onCreate(Bundle savedInstanceState) { 
slouken@6631
    27
	        super.onCreate(savedInstanceState); 
slouken@6631
    28
	    } 
slouken@6631
    29
	   
slouken@6631
    30
	    protected void onDestroy() { 
slouken@6631
    31
	        super.onDestroy(); 
slouken@6631
    32
	    } 
slouken@6631
    33
	}
slouken@6631
    34
        /**********************************************************/
slouken@6631
    35
slouken@6631
    36
         then replace "SDLActivity" in the XML below with the name of
slouken@6631
    37
         your class, e.g. "MyGame" ...
slouken@6631
    38
    -->
slouken@6631
    39
    <application android:label="@string/app_name"
slouken@6631
    40
                 android:icon="@drawable/icon"
slouken@6631
    41
	         android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
slouken@4965
    42
        <activity android:name="SDLActivity"
slouken@4965
    43
                  android:label="@string/app_name">
slouken@4965
    44
            <intent-filter>
slouken@4965
    45
                <action android:name="android.intent.action.MAIN" />
slouken@4965
    46
                <category android:name="android.intent.category.LAUNCHER" />
slouken@4965
    47
            </intent-filter>
slouken@4965
    48
        </activity>
slouken@4965
    49
    </application>
slouken@6631
    50
slouken@6631
    51
    <!-- Android 2.1 -->
slouken@6631
    52
    <uses-sdk android:minSdkVersion="10" /> 
slouken@6631
    53
slouken@6631
    54
    <!-- OpenGL ES 2.0 -->
slouken@6631
    55
    <uses-feature android:glEsVersion="0x00020000" /> 
slouken@6631
    56
slouken@6631
    57
    <!-- Allow writing to external storage -->
slouken@6631
    58
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 
slouken@4965
    59
</manifest>