Game Development Reference
In-Depth Information
The application can now be started from your Android launcher (named
App1
). You will see
just a black screen. You can exit the application using the BACK button.
There's more...
Don't forget to put the application icon into
App1\res\drawable\icon.png
. Refer
to the topic's code bundle if you want to build the app quickly, or put your own icon there.
72 x 72 32-bit will do just ine. You can ind the oficial Android icons guidelines at
http://developer.android.com/design/style/iconography.html
.
The oficial documentation on the
AndroidManifest.xml
ile can be found at
http://
developer.android.com/guide/topics/manifest/manifest-intro.html
.
Furthermore, you can update your applications without uninstalling the previous version using
the
adb -r
command-line switch in the following way:
>adb install -r App1-debug.apk
Otherwise, before installing a new version of your application you will have to uninstall the
existing one using the following command:
>adb uninstall <package-name>
See also…
F
Signing release Android applications
Adding native C++ code to your application
Let us expand our minimalistic Java template, which was discussed in the previous recipe, so
we can create a placeholder for our native C++ code.
Getting ready
We need to copy all the iles from our
App1
project to save time while creating the initial
project iles. This recipe will focus on the changes to be made to the
App1
project in order to
add the C++ code to it.