Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Android Games with Cocos2d-x

You're reading from   Building Android Games with Cocos2d-x Learn to create engaging and spectacular games for Android using Cocos2d-x

Arrow left icon
Product type Paperback
Published in Mar 2015
Publisher Packt
ISBN-13 9781785283833
Length 160 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Raydelto Hernandez Raydelto Hernandez
Author Profile Icon Raydelto Hernandez
Raydelto Hernandez
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Setting Up Your Development Environment 2. Graphics FREE CHAPTER 3. Understanding Game Physics 4. User Input 5. Handling Text and Fonts 6. Audio 7. Creating Particle Systems 8. Adding Native Java Code Index

Modifying the Android manifest


In this section, we are going to modify our Android manifest in order to insert it in the required configuration for using the Google Play Services library.

We just need to add two snippets, one of which will be just next to the opening application tag that will indicate the version of the Google Play Services being used, as we can appreciate in the following code listing:

        <meta-data
            android:name="com.google.android.gms.version"
            android:value="@integer/google_play_services_version" />

The second snippet that we are going to add is the AdActivity declaration, which will be added just next to the declaration of our game activity, so that our game is aware of this built-in activity located in the Google Play Services library:

       <activity
            android:name="com.google.android.gms.ads.AdActivity"
            android:configChanges="keyboard|keyboardHidden|orientation| screenLayout|uiMode|screenSize|smallestScreenSize...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime