Filters

Hide filters
Platform
Content Type
Difficulty

All Tutorials · 17 Results

Contained in: Android Debugging by Tutorials android
Android & Kotlin

Chapter in Android Debugging by Tutorials

Layout Inspector

…this chapter, you'll learn how to use the Layout Inspector to view, analyze and improve your Android views…
Android & Kotlin

Chapter in Android Debugging by Tutorials

Getting Started

…first chapter, you'll prepare your debugging environment by learning to use some Android Studio debugging tools…
Android & Kotlin

Chapter in Android Debugging by Tutorials

Profile CPU Activity

…this chapter, you'll learn how to harness all the power the Android Studio CPU Profiler offers…
Android & Kotlin
Android Debugging by Tutorials
Debugging is one of the most important steps in app development. Android Studio contains several tools which can help you out in stabilizing and optimizing your app. In this book, you’ll learn to use Android debugging tools to make your app optimized and bug-free through step-by-step…
Android & Kotlin

Chapter in Android Debugging by Tutorials

Profile Memory Usage

…foreground or background. It’s important to ensure your app is functional with minimal memory usage and leaves enough room for the Android OS and other apps to operate correctly. The Memory Profiler is a tool built within Android Studio that helps you understand, analyze and optimize your…
Android & Kotlin

Chapter in Android Debugging by Tutorials

Android Energy Profiler

…network activity and optimize network resource consumption. In this chapter, you’ll learn to inspect energy consumption with the Energy Profiler that comes with Android Studio. In the process, you’ll learn about: How to use different components of the Energy Profiler tool. How to identify resource-hungry events, such…
Android & Kotlin

Chapter in Android Debugging by Tutorials

Navigating Your Code With Breakpoints

…data can be retrieved and logged. Breakpoints are the backbone of any good IDE and a powerful tool in a developer’s toolbox; Android Studio is no different! If you’ve worked with any Android code before, you’re sure to have used these useful little red circles many times…
Android & Kotlin

Chapter in Android Debugging by Tutorials

Logcat Navigation & Customization

This chapter will teach you how to use the Logcat window in Android Studio, how to customize and filter it and how it can help you spot and fix bugs. You'll also learn the best practices for sending custom logs in app development…
Android & Kotlin

Chapter in Android Debugging by Tutorials

Introduction

Welcome to the First Edition of Android Debugging by Tutorials, created for Kotlin 1.6 and Android Studio 2021.2.1! Android Debugging focuses on explaining how to debug your app and avoid unexpected app behavior. Once you read this book, you’ll be able to find every bug or issue inside your…
Android & Kotlin

Chapter in Android Debugging by Tutorials

Watches & Evaluating the Code

…pane, you can also manipulate the data by setting values, finding usages, or pinning important information. To start, open the Podplay starter project in Android Studio. Open EpisodeListAdapter.kt, and add a breakpoint on the first line inside onBindViewHolder() so you can suspend your code inside this method…
Android & Kotlin

Chapter in Android Debugging by Tutorials

Analyzing the Stack Trace

…methods called at a certain place in your code. This list is typically referred to as the stack frame or call stack. In Android development, an exception generates a stack trace. You can review the stack trace to determine the underlying cause of a bug in your app. For example…
Android & Kotlin

Chapter in Android Debugging by Tutorials

Debugging Databases

This chapter will teach you how to explore, debug and modify queries from the Database in your Android app using Database Inspector…
Android & Kotlin

Chapter in Android Debugging by Tutorials

What You Need

…follow along with this book, you’ll need the following: Android device: You’ll need a device to test out the book examples. You can either use an emulator (AVD) or a real device. Kotlin 1.6 or later: This book uses Kotlin 1.6 throughout. The materials may work with older…
Android & Kotlin

Chapter in Android Debugging by Tutorials

Conclusion

Congratulations on completing your debugging journey! It’s been a long way — from learning the basics of Android debugging tools to handling app performance issues. At this point, you have gained a lot of experience with debugging tools and techniques. But don’t stop here! Hopefully, these techniques will inspire…
Android & Kotlin

Chapter in Android Debugging by Tutorials

Debugging WorkManager Jobs With Background Task Inspector

…files. Deferrable: Scheduled tasks that start at a later point in time or run periodically, e.g. periodic sync with the server. PodPlay relies on Android WorkManager to handle all types of background tasks. The app is smart enough to regularly check your subscribed channels and update the episode list…
Android & Kotlin

Chapter in Android Debugging by Tutorials

About the Team

Editors Martyn Haigh is the tech editor of this book. Martyn is a seasoned software engineer, currently working at Meta. He started hacking on Android way before it was cool, and has the scars to prove it. When not working, he loves coffee, traveling without a plan, snowboarding, good food…
Android & Kotlin

Chapter in Android Debugging by Tutorials

Profile Network Activity

…previously learned how to look into memory footprint using the Android Studio Memory Profiler as a part of your debugging process. In this chapter, you’ll continue your quest and learn to inspect network traffic using the Network Inspector bundled with Android Studio. Your smartphone performs plenty of network operations…