android-project/AndroidManifest.xml
changeset 6631 47ab7ba21530
parent 6392 fa7eb111f994
child 6632 147f85ac2e4b
equal deleted inserted replaced
6630:55910871076b 6631:47ab7ba21530
     1 <?xml version="1.0" encoding="utf-8"?>
     1 <?xml version="1.0" encoding="utf-8"?>
     2 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     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      -->
     3       package="org.libsdl.app"
     6       package="org.libsdl.app"
     4       android:versionCode="1"
     7       android:versionCode="1"
     5       android:versionName="1.0">
     8       android:versionName="1.0"
       
     9       android:installLocation="auto">
     6 
    10 
     7     <uses-sdk android:minSdkVersion="5" />
    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
     8 
    14 
     9     <application android:label="@string/app_name" android:icon="@drawable/icon">
    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">
    10         <activity android:name="SDLActivity"
    42         <activity android:name="SDLActivity"
    11                   android:label="@string/app_name">
    43                   android:label="@string/app_name">
    12             <intent-filter>
    44             <intent-filter>
    13                 <action android:name="android.intent.action.MAIN" />
    45                 <action android:name="android.intent.action.MAIN" />
    14                 <category android:name="android.intent.category.LAUNCHER" />
    46                 <category android:name="android.intent.category.LAUNCHER" />
    15             </intent-filter>
    47             </intent-filter>
    16         </activity>
    48         </activity>
    17     </application>
    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" /> 
    18 </manifest> 
    59 </manifest>