Skip to content

FranAguilera/Android-ANR-Common-Pitfalls

Repository files navigation

Android ANR Common Pitfalls

Basic Android App demoing main causes of ANR and how to utilize ApplicationExitInfo

Slides from droidconSF 2022 talk can be found here https://speakerdeck.com/yhartanto/anr-overview-at-uber-plus-leveraging-applicationexitinfo-api

To reproduce an ANR

  1. Click on any button
  2. Try to interact with screen - Back Button is a good one
  3. Wait for ANR dialog to be shown.
  4. ANR stacktraces will be shown on next app launch
Basic layout ANR triggered
remove_task_1 anr_at_rx_blocking
Deadlock demo - main held by tid=2 Deadlock demo - background thread held by tid=1
anr_deadlock held_by_thread_1

About

App demoing common reasons leading to ANR

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages