Chapter    12

Debugging

The more complex your app becomes, the more likely it will contain errors. Nothing frustrates a user more than an app that crashes, fails to run under certain conditions, or gets in the way of the task that it was intended to accomplish. A naïve approach to development is to assume that your code will always execute along the paths you define. This is sometimes referred to as the happy path.

Understanding where code can deviate from the happy path is vital to becoming a good software developer. Because you cannot predict all the potential unhappy paths during development, it helps to develop an understanding of the various diagnostic tools and techniques involved in Android development. Chapter 11 covers the Anytical ...

Get Learn Android Studio: Build Android Apps Quickly and Effectively 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.