Handling Activity events

In the first part, a native event loop was run, which flushes events without really processing them. In this second part, we are going to discover more about these events occurring during the activity lifecycle, and how to process them, spending the remaining time stepping our application.

Note

The resulting project is provided with this book under the name DroidBlaster_Part2.

Get Android NDK Beginner's Guide - 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.