O'Reilly logo

Android™ 6 for Programmers: An App-Driven Approach, Third Edition by Alexander Wald, Harvey Deitel, Paul Deitel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

5. Doodlz App

2D Graphics, Canvas, Bitmap, Accelerometer, SensorManager, Multitouch Events, MediaStore, Printing, Android 6.0 Permissions, Gradle

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required