Skip to content

Clarify Application class code and system splash screen vs. Android TTID #18700

Description

@sentry-junior

The Android app-start docs (docs/platforms/android/tracing/instrumentation/automatic-instrumentation.mdx, Cold Start / Time to Initial Display sections) don't clarify two behaviors that came up in a customer question:

  • Code in the Application class (e.g. onCreate, attachBaseContext) runs before TTID ends and is counted as part of cold start, not after it. This follows from SentryPerformanceProvider's ContentProvider.onCreate() starting the app-start clock, which itself runs before Application.onCreate().
  • The Android system splash screen (the default SplashScreen API window on Android 12+, shown as an OS-rendered Window rather than an Activity) has no effect on TTID measurement. The SDK has no splash-screen-specific instrumentation (verified: no splash/SplashScreen references anywhere in sentry-java); TTID is purely Activity-lifecycle- and first-frame-drawn-based.

Adding a short note covering both points to the Cold Start / TTID docs would help customers reason about what does and doesn't count toward the measurement.

Requested by kpujji via Junior.

--

View Junior Session in Sentry

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions