Game Development Reference
In-Depth Information
Now we need to write more scripts for Apache Ant and the Android SDK build system. They are
necessary to build the .apk package of your application.
1.
The following is the App1/project.properties ile:
target=android-15
sdk.dir=d:/android-sdk-windows
2. We need two more iles for Ant. The following is App1/AndroidManifest.xml :
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/
android"
package="com.packtpub.ndkcookbook.app1"
android:versionCode="1"
android:versionName="1.0.0">
<supports-screens
android:smallScreens="false"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:anyDensity="true" />
<uses-sdk android:minSdkVersion="8" />
<uses-sdk android:targetSdkVersion="18" />
Our examples require at least OpenGL ES 2. Let Android know about it:
<uses-feature android:glEsVersion="0x00020000"/>
<application android:label="@string/app_name"
android:icon="@drawable/icon"
android:installLocation="preferExternal"
android:largeHeap="true"
android:debuggable="false">
<activity android:name="com.packtpub.ndkcookbook.app1.
App1Activity"
android:launchMode="singleTask"
Create a full-screen application in a landscape screen orientation:
android:theme="@android:style/Theme.NoTitleBar.
Fullscreen"
android:screenOrientation="landscape"
android:configChanges="orientation|keyboardHidd
en"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
 
Search WWH ::




Custom Search