Time to deploy the game to Android.
Follow the instructions from the
HelloWorld
example to import the game into Eclipse.Navigate to the
proj.android
folder and open theAndroidManifest.xml
file in a text editor. Then, go to thejni
folder and open theAndroid.mk
file in a text editor.In the
AndroidManifest.xml
file, edit the following line in theactivity
tag:android:screenOrientation="portrait"
And it's possible to target only tablets by adding these lines in the
supports-screens
tag:<supports-screens android:anyDensity="true" android:smallScreens="false" android:normalScreens="false" android:largeScreens="true" android:xlargeScreens="true"/>
Although if you want to target only tablets, you might also wish to target the later versions of SDK, like this:
<uses-sdk android:minSdkVersion="11"/>
Next, let's edit the make file, so open the
Android.mk
file and edit the lines inLOCAL_SRC_FILES
to read...