# OutOfMemoryError on Android: heap dump recording

DevFeed: [OutOfMemoryError on Android: heap dump recording](<https://devfeed.tech/articles/outofmemoryerror-on-android-heap-dump-recording-26142.md>)

Original publisher: [Read original article](<https://vadzimv.dev/2024/01/07/oom-android-heap-dump-recording.html>)

Author: Vadzimv Dev Blog

Published: 2024-01-07T11:00:00Z

Content type: tutorial

Language: en

Sources: [vadzimv Dev Blog](<https://devfeed.tech/sources/vadzimv-dev-blog.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [debugging](<https://devfeed.tech/topics/debugging.md>), [Java](<https://devfeed.tech/topics/java.md>), [Memory Leaks](<https://devfeed.tech/topics/memory-leaks.md>), [Android Studio](<https://devfeed.tech/topics/android-studio.md>), [Crashlytics](<https://devfeed.tech/topics/crashlytics.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-studio](<https://devfeed.tech/tags/android-studio.md>), [debugging-tools](<https://devfeed.tech/tags/debugging-tools.md>), [firebase](<https://devfeed.tech/tags/firebase.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [java](<https://devfeed.tech/tags/java.md>), [memory-leak](<https://devfeed.tech/tags/memory-leak.md>)

## AI overview

This tutorial explains how to automatically record a Java heap dump when an OutOfMemoryError occurs in an Android application. It covers heap-dump collection, uncaught-exception handling, Android storage, and subsequent analysis.

## Source excerpt

Learn how to record a Java heap dump at the moment of OutOfMemoryError.