Tag: activity

  • Avoiding Android Memory Leaks: Part 1

    I recently discovered how easy it is to accidentally “leak” memory and resources in an Android application. In this tutorial, I’ll illustrate a memory leak with a simple dialog box example, and then show you how to fix it. Let’s start by creating a simple Android application that displays a dialog in its onCreate event:…