Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
The Android Game Developer???s Handbook
The Android Game Developer???s Handbook

The Android Game Developer???s Handbook: Discover an all in one handbook to developing immersive and cross-platform Android games

Arrow left icon
Profile Icon Avisekhar Roy
Arrow right icon
Free Trial
Full star icon Full star icon Full star icon Full star icon Empty star icon 4 (2 Ratings)
Paperback Aug 2016 368 pages 1st Edition
eBook
S$12.99 S$52.99
Paperback
S$66.99
Subscription
Free Trial
Arrow left icon
Profile Icon Avisekhar Roy
Arrow right icon
Free Trial
Full star icon Full star icon Full star icon Full star icon Empty star icon 4 (2 Ratings)
Paperback Aug 2016 368 pages 1st Edition
eBook
S$12.99 S$52.99
Paperback
S$66.99
Subscription
Free Trial
eBook
S$12.99 S$52.99
Paperback
S$66.99
Subscription
Free Trial

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

The Android Game Developer???s Handbook

Chapter 2. Introduction to Different Android Platforms

The first commercially released Android device was the HTC Dream. In 2008, this mobile phone introduced a new Linux-based operating system, Android. Since then, thousands of manufacturers have been using Android for their devices. At first, Android became popular among mobile operating systems such as Symbian, Java ME, Blackberry, and iOS. New generation technology had a demand for a new, lightweight, user-friendly, and affordable operating system. Android fulfilled these requirements, and gained its momentum faster than Blackberry and other competing operating systems.

According to the latest market study, in the first quarter of 2016, Android holds 76% of the market share, which itself explains its success. With the passage of time, Android has expanded its territory from mobile to other useful hardware platforms like tablets, televisions, watches, consoles, and so on.

In this chapter, we will explore these platforms from...

Exploring Android mobiles

Android mobile devices are the most important devices for game developers. Mobile technology has undergone a huge revolution during the last decade, from the black and white pixel phone to modern age smartphones. Currently, Android mobile devices are leading the market by a huge margin compared to its nearest competitor, the iPhone.

Initial Android gaming got its momentum after the release of Android version 1.6, followed by Android 2.3. Even today, there are many devices running on Android 2.3. That is why many of the popular cross-platform gaming engines support Android 2.3.

There was a time when Android used to run with a minimum requirement of 32 MB of RAM, 32 MB of disk space, and a 200 MHz processor as well. If we take a look at current device specifications, a drastic change can be noticed. Nowadays, Android mobile devices have 1 GB RAM, 1 GHz processor, and 4 GB disk space on an average. Most of the devices have multicore processing units. However, this...

Exploring Android tablets

Android tablets are very similar to Android mobile phones. The main specification difference between an Android phone and an Android tablet is the physical size and screen resolution. Generally, Android tablets work on lower PPI than a mobile. However, there is no hard-and-fast rule or any specific system to measure that.

The minimum requirement to run Android was a 200 MHz processor, 32 MB RAM, and 32 MB disk space. Android requires an ARMv5 or higher processor, although Android 4 requires ARMv7. Previously, starting age tablets had almost the minimum hardware system.

Tablets evolved from the concept of a tablet computer; they consist of a touchscreen display, camera, microphone, speaker, and a few physical buttons. Tablets are typically larger than phones or PDAs.

One of the minimum configured Android tablet is Coby Kyros MID7047, which is shown here (image source: http://www.evisionstore.com/catalogo/coby_mid7012-4g.jpg):

Exploring Android tablets

The following table shows its specifications...

Exploring Android televisions and STBs

After the success of Android mobiles and tablets, Android started expanding its territory towards other hardware platforms. Television became the next target, as the concept of smart TV was already in the market. Thus, a television set became interactive through Android. Google has released a few additional accessories for Android televisions to increase the user experience.

The first Android television device launched for consumers was the Nexus Player on November 3, 2014. The specification of this is as follows:

  • Intel Atom Z3560 1.8 GHz quadcore processor
  • 1 GB RAM
  • 8 GB Flash storage
  • Android 5.1.1 Lollipop

Here's what it looks like (image source: http://1.bp.blogspot.com/-H1rp1fboU6g/VX2Huu6ClyI/AAAAAAAA3hA/5te4NZ65Tgg/s1600/nexus_player.jpg):

Exploring Android televisions and STBs

This was the first kind of Android television device, very similar to Google TV and comparable with Apple TV also.

Apart from Nexus Player, there are a few more Android-enabled STB devices:

  • Freebox Mini 4K: This...

Exploring Android consoles

A small piece of adapter connected to a television and a controller device to control the adapter, together are called a console set. Android is a cheap, low-budget operating system, which can be used on any mobile hardware platform with ease.

One of the first Android-based consoles is OUYA (image source: http://cdn2.pu.nl/media/misc/ouya_wall_ins.jpg):

Exploring Android consoles

These consoles are called microconsoles. A few years ago, the specification of such consoles was the following:

  • Model: OUYA
  • Processor: ARM Cortex A9
  • Speed: 1.7 GHz quadcore
  • System chip: NVIDIA Tegra 3
  • Flash memory: 8 GB
  • RAM: 1 GB DDR3
  • Display: HD (720p) or Full HD (1080p)
  • Graphics processor: NVIDIA GeForce ULP GPU
  • Android version: Android 4.1 Jelly Bean
  • Connectivity: Wi-Fi, Bluetooth and LAN

Now let's have a look at the modern age Android console specification:

  • Model: NVIDIA Shield
  • Processor: ARM Cortex A57 + A53 (64 bit)
  • Speed: 1.9 GHz quadcore + 1000 MHz quadcore
  • System chip: NVIDIA Tegra X1
  • Flash memory: 500 GB HDD
  • RAM: 3...

Exploring Android watches

In the smart era of technology, it was expected that every possible gadget would work smarter. Wristwatches were no exception. The type of watches changed from analog to digital, and now to purely computerized smartwatches. Being a very flexible open source operating system, Android is one of the most favorite option for smartwatches (image source: http://photos.appleinsidercdn.com/bigger-wimm-130830.jpg):

Exploring Android watches

From the very early versions, Android watches were well capable of playing games, thus entering the game development domain. Advanced devices are as good as small computers. They consist of the Internet, sensors, cameras, Bluetooth, Wi-Fi, speakers, card slots, and have many more features.

Like other computers, a smartwatch may collect information from internal or external sensors. It may control, or retrieve data from, other instruments or computers. It may support wireless technologies like Bluetooth, Wi-Fi, and GPS. However, it is possible that a "wristwatch...

Exploring Android mobiles


Android mobile devices are the most important devices for game developers. Mobile technology has undergone a huge revolution during the last decade, from the black and white pixel phone to modern age smartphones. Currently, Android mobile devices are leading the market by a huge margin compared to its nearest competitor, the iPhone.

Initial Android gaming got its momentum after the release of Android version 1.6, followed by Android 2.3. Even today, there are many devices running on Android 2.3. That is why many of the popular cross-platform gaming engines support Android 2.3.

There was a time when Android used to run with a minimum requirement of 32 MB of RAM, 32 MB of disk space, and a 200 MHz processor as well. If we take a look at current device specifications, a drastic change can be noticed. Nowadays, Android mobile devices have 1 GB RAM, 1 GHz processor, and 4 GB disk space on an average. Most of the devices have multicore processing units. However, this rise...

Exploring Android tablets


Android tablets are very similar to Android mobile phones. The main specification difference between an Android phone and an Android tablet is the physical size and screen resolution. Generally, Android tablets work on lower PPI than a mobile. However, there is no hard-and-fast rule or any specific system to measure that.

The minimum requirement to run Android was a 200 MHz processor, 32 MB RAM, and 32 MB disk space. Android requires an ARMv5 or higher processor, although Android 4 requires ARMv7. Previously, starting age tablets had almost the minimum hardware system.

Tablets evolved from the concept of a tablet computer; they consist of a touchscreen display, camera, microphone, speaker, and a few physical buttons. Tablets are typically larger than phones or PDAs.

One of the minimum configured Android tablet is Coby Kyros MID7047, which is shown here (image source: http://www.evisionstore.com/catalogo/coby_mid7012-4g.jpg):

The following table shows its specifications...

Exploring Android televisions and STBs


After the success of Android mobiles and tablets, Android started expanding its territory towards other hardware platforms. Television became the next target, as the concept of smart TV was already in the market. Thus, a television set became interactive through Android. Google has released a few additional accessories for Android televisions to increase the user experience.

The first Android television device launched for consumers was the Nexus Player on November 3, 2014. The specification of this is as follows:

  • Intel Atom Z3560 1.8 GHz quadcore processor

  • 1 GB RAM

  • 8 GB Flash storage

  • Android 5.1.1 Lollipop

Here's what it looks like (image source: http://1.bp.blogspot.com/-H1rp1fboU6g/VX2Huu6ClyI/AAAAAAAA3hA/5te4NZ65Tgg/s1600/nexus_player.jpg):

This was the first kind of Android television device, very similar to Google TV and comparable with Apple TV also.

Apart from Nexus Player, there are a few more Android-enabled STB devices:

  • Freebox Mini 4K: This is a...

Exploring Android consoles


A small piece of adapter connected to a television and a controller device to control the adapter, together are called a console set. Android is a cheap, low-budget operating system, which can be used on any mobile hardware platform with ease.

One of the first Android-based consoles is OUYA (image source: http://cdn2.pu.nl/media/misc/ouya_wall_ins.jpg):

These consoles are called microconsoles. A few years ago, the specification of such consoles was the following:

  • Model: OUYA

  • Processor: ARM Cortex A9

  • Speed: 1.7 GHz quadcore

  • System chip: NVIDIA Tegra 3

  • Flash memory: 8 GB

  • RAM: 1 GB DDR3

  • Display: HD (720p) or Full HD (1080p)

  • Graphics processor: NVIDIA GeForce ULP GPU

  • Android version: Android 4.1 Jelly Bean

  • Connectivity: Wi-Fi, Bluetooth and LAN

Now let's have a look at the modern age Android console specification:

  • Model: NVIDIA Shield

  • Processor: ARM Cortex A57 + A53 (64 bit)

  • Speed: 1.9 GHz quadcore + 1000 MHz quadcore

  • System chip: NVIDIA Tegra X1

  • Flash memory: 500 GB...

Exploring Android watches


In the smart era of technology, it was expected that every possible gadget would work smarter. Wristwatches were no exception. The type of watches changed from analog to digital, and now to purely computerized smartwatches. Being a very flexible open source operating system, Android is one of the most favorite option for smartwatches (image source: http://photos.appleinsidercdn.com/bigger-wimm-130830.jpg):

From the very early versions, Android watches were well capable of playing games, thus entering the game development domain. Advanced devices are as good as small computers. They consist of the Internet, sensors, cameras, Bluetooth, Wi-Fi, speakers, card slots, and have many more features.

Like other computers, a smartwatch may collect information from internal or external sensors. It may control, or retrieve data from, other instruments or computers. It may support wireless technologies like Bluetooth, Wi-Fi, and GPS. However, it is possible that a "wristwatch...

Development insights on Android mobiles


As we discussed earlier, the main development target for any game developer on the Android platform are Android mobiles. We have also noticed the various technical specifications for Android mobiles. When a game developer targets this platform at its maximum possible scope, they must take a note of the device category.

Mostly, all Android devices support a common touch interface, a physical Home button, a physical Lock button, a Back button, and volume Up-Down keys for user interaction. Besides these, an accelerometer can be also a good medium for the user interface.

Gaming is mostly visual, so game developers should always look for the graphic performance of the device. There is a separate graphics processor in the latest Android mobiles, but the quality varies.

Visual excellence does not depend on GPU only—the display screen quality also matters a lot. Low PPI screens cannot deliver a high quality display. The first-generation Android G1 mobile had...

Development insights on Android tablets


Android game development was mainly limited to smartphones before Android tablets came into the picture. It was much more fun to play a game on a tablet. Tablet gaming became popular over a short period of time because of the following reasons:

  • Bigger screen: Although a bigger screen with the same resolution compromises the visual quality, it provides bigger visibility. Bigger visibility enhances the art asset to reveal its details, which is not always possible for a small screen smartphone.

  • Bigger physical size: Bigger physical size forces the player to play with both hands, which results in better grip on the device and better controls.

  • Bigger space/playable area: Bigger playable area can provide more control space. That means that the player need not to be accurate while using the touch control system, so he/she can concentrate more on the game alone. Thus, it enhances the gaming experience.

  • Less constraints: Continuous playing of games causes a...

Left arrow icon Right arrow icon

Key benefits

  • Practical tips and tricks to develop powerful Android games
  • Learn to successfully implement microtransactions and monitor the performance of your game once it’s out live.
  • Integrate Google’s DIY VR tool and Google Cardboard into your games to join in on the VR revolution

Description

Gaming in android is an already established market and growing each day. Previously games were made for specific platforms, but this is the time of cross platform gaming with social connectivity. It requires vision of polishing, design and must follow user behavior. This book would help developers to predict and create scopes of improvement according to user behavior. You will begin with the guidelines and rules of game development on the Android platform followed by a brief description about the current variants of Android devices available. Next you will walk through the various tools available to develop any Android games and learn how to choose the most appropriate tools for a specific purpose. You will then learn JAVA game coding standard and style upon the Android SDK. Later, you would focus on creation, maintenance of Game Loop using Android SDK, common mistakes in game development and the solutions to avoid them to improve performance. We will deep dive into Shaders and learn how to optimize memory and performance for an Android Game before moving on to another important topic, testing and debugging Android Games followed by an overview about Virtual Reality and how to integrate them into Android games. Want to program a different way? Inside you’ll also learn Android game Development using C++ and OpenGL. Finally you would walk through the required tools to polish and finalize the game and possible integration of any third party tools or SDKs in order to monetize your game when it’s one the market!

Who is this book for?

This book is ideal for any game developer, with prior knowledge of developing games in Android. A good understanding of game development and a basic knowledge on Android platform application development and JAVA/C++ will be appreciated.

What you will learn

  • Learn the prospects of Android in Game Development
  • Understand the Android architecture and explore platform limitation and variations
  • Explore the various approaches for Game Development using Android
  • Learn about the common mistakes and possible solutions on Android Game Development
  • Discover the top Cross Platform Game Engines and port games on different android platform
  • Optimize memory and performance of your game.
  • Familiarize yourself with different ways to earn money from Android Games

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Aug 19, 2016
Length: 368 pages
Edition : 1st
Language : English
ISBN-13 : 9781785885860
Vendor :
Google
Languages :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Aug 19, 2016
Length: 368 pages
Edition : 1st
Language : English
ISBN-13 : 9781785885860
Vendor :
Google
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just S$6 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just S$6 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total S$ 261.97
Learning Android Application Development
S$59.99
The Android Game Developer???s Handbook
S$66.99
Android: Game Programming
S$134.99
Total S$ 261.97 Stars icon
Banner background image

Table of Contents

14 Chapters
1. Android Game Development Chevron down icon Chevron up icon
2. Introduction to Different Android Platforms Chevron down icon Chevron up icon
3. Different Android Development Tools Chevron down icon Chevron up icon
4. Android Development Style and Standards in the Industry Chevron down icon Chevron up icon
5. Understanding the Game Loop and Frame Rate Chevron down icon Chevron up icon
6. Improving Performance of 2D/3D Games Chevron down icon Chevron up icon
7. Working with Shaders Chevron down icon Chevron up icon
8. Performance and Memory Optimization Chevron down icon Chevron up icon
9. Testing Code and Debugging Chevron down icon Chevron up icon
10. Scope for Android in VR Games Chevron down icon Chevron up icon
11. Android Game Development Using C++ and OpenGL Chevron down icon Chevron up icon
12. Polishing Android Games Chevron down icon Chevron up icon
13. Third-Party Integration, Monetization, and Services Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
(2 Ratings)
5 star 50%
4 star 0%
3 star 50%
2 star 0%
1 star 0%
Martin DeWitt Jun 07, 2017
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I haven't gotten through the entire book yet, but I've already learned a lot from what I have read. It's written very well, and as a professional 3d artist with limited programming knowledge, I am able to follow along well enough to understand the author. I've no doubt that I'll be referencing this book a lot in the future as I continue to work on my own android game.
Amazon Verified review Amazon
Sandeep Jan 17, 2017
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
not that good enough :( i expected something else good
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.