# ANR internals: touch dispatching through the view hierarchy

DevFeed: [ANR internals: touch dispatching through the view hierarchy](<https://devfeed.tech/articles/anr-internals-touch-dispatching-through-the-view-hierarchy-25618.md>)

Original publisher: [Read original article](<https://blog.p-y.wtf/anr-internals-touch-dispatching-through-the-view-hierarchy>)

Author: Pierre-Yves Ricau

Published: 2023-09-14T16:32:24Z

Content type: tutorial

Language: en

Sources: [Py's blog](<https://devfeed.tech/sources/py-s-blog.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [ui](<https://devfeed.tech/topics/ui.md>), [Compose](<https://devfeed.tech/topics/compose.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [anr](<https://devfeed.tech/tags/anr.md>), [compose](<https://devfeed.tech/tags/compose.md>), [deep-dive](<https://devfeed.tech/tags/deep-dive.md>), [internals](<https://devfeed.tech/tags/internals.md>), [main-thread](<https://devfeed.tech/tags/main-thread.md>), [performance](<https://devfeed.tech/tags/performance.md>), [thread](<https://devfeed.tech/tags/thread.md>)

## AI overview

This first article in a series on Android ANR internals examines how touch and input events move through the view hierarchy. It explains that input dispatching can trigger an ANR when an app does not respond within five seconds, and compares traditional view listener dispatch with Compose click-lambda dispatch.

## Source excerpt

I'm writing a blog series on ANR internals, where I'll use ANRs as an excuse to learn more about how various parts of Android work. This first article is focused on touch dispatching through the view hierarchy. ANR triggers How is an "Application No...