Book Image

Android 9 Development Cookbook - Third Edition

By : Rick Boyer
Book Image

Android 9 Development Cookbook - Third Edition

By: Rick Boyer

Overview of this book

The Android OS has the largest installation base of any operating system in the world. There has never been a better time to learn Android development to write your own applications, or to make your own contributions to the open source community! With this extensively updated cookbook, you'll find solutions for working with the user interfaces, multitouch gestures, location awareness, web services, and device features such as the phone, camera, and accelerometer. You also get useful steps on packaging your app for the Android Market. Each recipe provides a clear solution and sample code you can use in your project from the outset. Whether you are writing your first app or your hundredth, this is a book that you will come back to time and time again, with its many tips and tricks on the rich features of Android Pie.
Table of Contents (24 chapters)
Title Page
Copyright and Credits
Dedication
About Packt
Contributors
Preface
Index

Introduction


As we saw in the previous chapter, Android offers many tools for handling graphics and animations. Although the canvas and drawable objects are designed for custom drawing, when you need high-performance graphics, especially 3D gaming graphics, Android also supports OpenGL ES. Open Graphics Library for Embedded Systems (OpenGL ES), is targeted at embedded systems. (Embedded systems include consoles and phones.)

This chapter is meant to serve as an introduction to using OpenGL ES on Android. As usual, we'll provide the steps and explain how things work, but we aren't going to be digging into the math or technical details of OpenGL. If you are already familiar with OpenGL ES from other platforms, such as iOS, this chapter should get you up and running quickly. If you are new to OpenGL, hopefully these recipes will help you decide whether this is an area you want to pursue.

Android supports the following versions of OpenGL:

  • OpenGL ES 1.0: Android 1.0
  • OpenGL ES 2.0: Introduced in Android...