Hangar Open the console

Collecting crash reports and feedback from Android testers

What Android's crash dialog, Play Console, Crashlytics and in-app feedback each give you, and how to get a tester's crash report back to your team.

A tester says the app crashed. You ask what they were doing, which phone they have and which build it was, and half of that is lost by the time you read it. This guide covers the ways to get crash reports and feedback from Android testers: what Android itself offers, what Google Play shows you, what an SDK such as Crashlytics adds, and where each one stops.

Android's own crash dialog

When an app crashes, Android can show a dialog saying the app has stopped or keeps stopping. Android's source code includes a Send feedback button for that dialog.1 The button is only shown when there is an app to receive the report.2 The dialog for an app that isn't responding (an ANR) follows the same rule.3

When the tester presses that button, Android sends an ACTION_APP_ERROR intent to the package that installed the app that crashed, which is usually Google Play.4 The intent carries an ApplicationErrorReport.5 For a crash, the report includes the exception's class name, its message and the stack trace. For an ANR, it includes the activity, what timed out, and extra details such as CPU statistics.67

Two things follow from this:

  • The report goes to the app that installed yours, not straight to you. If testers install from the Play Store, it goes to Google Play. Android looks for a receiver in the installing app first, and can then try receivers built into the phone's system.19 If nothing accepts the report, the button isn't shown.2
  • This report is only sent if the tester presses the button.
  • The dialog doesn't always appear on the first crash. In Android 16's source code, a repeated crash can show the dialog even when dialogs for a first crash are turned off.20

Crashes in Play Console

Play Console shows crashes and ANRs under Android vitals, grouped into clusters, with stack traces.89 You can break the numbers down by app version, Android version, device model and country.10 The data comes from users who opted in to share usage and diagnostics data.8

Android vitals only counts issues from certified devices and from apps installed from Google Play.11 A tester who installed your build some other way won't show up there.

Play's pre-launch report is a different thing. Google installs your app on devices in its lab and crawls it automatically, looking for stability, compatibility, performance and accessibility problems.12 The report can include stack traces, screenshots and video.13 It runs when Google's device lab has capacity, so it is not guaranteed for every upload.12 It finds the crashes an automated crawl reaches, which are not always the ones your testers hit.

Crash reporting SDKs

Firebase Crashlytics reports crashes, non-fatal errors and ANRs, but you have to add its SDK to your app.14 ANR reports need Android 11 or later.15 You can also record caught exceptions as non-fatal errors with recordException.16

An SDK reports crashes without anyone pressing a button, from testers and real users alike. Google notes that SDKs can miss some crashes, such as ones that happen before the SDK starts.11 Crashlytics also lets your code attach custom keys and events to a report.16 The tester's own account of what they were doing still needs a feedback step of its own.

Feedback with screenshots

Crash reports tell you where the code failed. Testers also find layouts that break, copy that is wrong and flows that confuse. For those you want a screenshot and a sentence.

The Firebase App Distribution Android SDK, added to your app, can capture a screenshot and let the tester write feedback, started from a notification or from a trigger you build, such as a button or shaking the phone.17 Firebase still labels that SDK as beta.17 On iPhone, TestFlight testers can take a screenshot in the app they are testing, or send feedback from the TestFlight app.18

How Hangar does it

Hangar installs your test builds, so Android treats Hangar as the installer. When a build crashes or stops responding and the tester taps Send feedback in Android's dialog, the report goes to Hangar. Hangar opens a crash report form with the crash summary filled in, the tester adds what they were doing, and the report reaches you in the console with the stack trace and the device details.

For everything else, testers send feedback from inside Hangar: a screenshot and a comment. Hangar adds the build and device details. You don't need to add an SDK to your app for either.

What to set up

  • Use a crash reporting SDK if you want crashes reported without testers doing anything, including from real users.
  • Make sure your testers' installs come from an app that receives the crash dialog's reports, so the tester's own report can reach you.
  • Ask testers for a screenshot and one sentence, and make it one tap to send.
  • Keep the build number with every report, so you know which build to fix.

Sources

  1. core/res/res/values/strings.xml, Android Open Source Project
  2. AppErrorDialog.java, Android Open Source Project
  3. AppNotRespondingDialog.java, Android Open Source Project
  4. Intent: ACTION_APP_ERROR, Android Developers
  5. AppErrors.java, Android Open Source Project
  6. ApplicationErrorReport.CrashInfo, Android Developers
  7. ApplicationErrorReport.AnrInfo, Android Developers
  8. View crashes and application not responding errors, Play Console Help
  9. Crashes, Android Developers
  10. Monitor your app's technical quality with Android vitals, Play Console Help
  11. Android vitals, Android Developers
  12. Use a pre-launch report to identify issues, Play Console Help
  13. Understand your pre-launch report, Play Console Help
  14. Get started with Crashlytics for Android, Firebase
  15. Crashlytics troubleshooting and FAQ, Firebase
  16. Customize crash reports for Android, Firebase
  17. Collect feedback from testers, Firebase
  18. TestFlight Overview, Apple Developer
  19. ApplicationErrorReport.java, Android Open Source Project
  20. AppErrors.java (Android 16), Android Open Source Project

Give your Android testers one app.

Open the console to add your app and its builds. Your testers install the Hangar app on an Android phone.

HGR-BLOG