7. Doodlz App

Two-Dimensional Graphics, Canvas, Bitmap, Accelerometer, SensorManager, Multitouch Events, MediaStore, Printing, Immersive Mode

Image

Objectives

In this chapter you’ll:

Image Detect when the user touches the screen, moves a finger across the screen and removes a finger from the screen.

Image Process multiple touches so the user can draw with multiple fingers at once.

Use a SensorManager and the accelerometer to detect motion events.

Use a Paint

Get Android™ for Programmers: An App-Driven Approach, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.