Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 1.11 KB

README.md

File metadata and controls

24 lines (14 loc) · 1.11 KB

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