android-project/AndroidManifest.xml
changeset 6632 147f85ac2e4b
parent 6631 47ab7ba21530
child 6838 abd1407af1f9
equal deleted inserted replaced
6631:47ab7ba21530 6632:147f85ac2e4b
    10 
    10 
    11     <!-- Create a Java class extending SDLActivity and place it in a
    11     <!-- Create a Java class extending SDLActivity and place it in a
    12          directory under src matching the package, e.g.
    12          directory under src matching the package, e.g.
    13          	src/com/gamemaker/game/MyGame.java
    13          	src/com/gamemaker/game/MyGame.java
    14 
    14 
    15         /**********************************************************/
    15          then replace "SDLActivity" with the name of your class (e.g. "MyGame")
    16 	package com.gamemaker.game;
    16          in the XML below.
    17 
    17 
    18 	import org.libsdl.app.SDLActivity; 
    18          An example Java class can be found in README.android
    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     -->
    19     -->
    39     <application android:label="@string/app_name"
    20     <application android:label="@string/app_name"
    40                  android:icon="@drawable/icon"
    21                  android:icon="@drawable/icon"
    41 	         android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
    22 	         android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
    42         <activity android:name="SDLActivity"
    23         <activity android:name="SDLActivity"