How does it work?

Basically, it's a game of capturing the time taken and evaluating against the benchmarked execution time of various kinds of event. For example, if your app is not responding to any keypress events or touch events, Android will throw the Application Not Responding (ANR) error. And it will show a popup to the user stating that error. For example, within five seconds, the touch event has to be responded to and the UI thread should be free. A broadcast receiver must finish within 10 seconds.

Having said that, data is captured between two points in time in your app:

  • Whenever the app is launched, SDK will automatically capture app-launch traces. Your application's onCreate() function does this internally. This is done even if ...

Get Hands-On Serverless Applications with Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.