Chapter 21. Threads, and Starting the Live Drawing App

In this chapter, we will get started on our next app. This app will be a kid's drawing app where the user can draw on the screen using their finger. This drawing app will be slightly different, however. The lines that the user draws will be comprised of particle systems that explode into thousands of pieces. We will call the project Live Drawing.

To achieve this, we will do the following.

  • Get started with the Live Drawing app
  • Learn about real-time interaction, sometimes referred to as a game loop
  • Learn about threads
  • Code a real-time system that will be ready for us to draw in (in the next chapter)

So, let's get started!

Creating the Live Drawing project

To get started, create a new project in Android ...

Get Android Programming for Beginners - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.