Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Latest commit

 

History

History
59 lines (49 loc) · 1.93 KB

AndroidManifest.xml

File metadata and controls

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