• EnglishEspañol日本語한국어Português
  • Log inStart now

Configure app launch times

With the Android agent, you can report app launch time, also known as "cold time" and "hot time."

Configure app launch time

Important

This feature is available for agent versions 6.9.0 and higher.

To enable the Android agent to report app launch time: Add the following to your application's AndroidManifest.xml:

<application>
<!-- make sure to provide unique authorities if apply to multiple apps on the same device -->
<provider
android:name="com.newrelic.agent.android.rum.contentprovider.NewRelicAppContentProvider"
android:authorities="com.newrelic.android.agent.nrprovider.${applicationId}"
android:initOrder="200"
android:exported="false"/>
</application>

Your app launch time is reported with the AppLaunch/Cold and AppLaunch/Hot metrics. To track these launch time metrics, you can use the Query builder to create a custom dashboard. To use the Query builder, go to one.newrelic.com > All capabilities > Capabilities > Query builder.

Here's a sample query for capturing cold and hot launch times:

SELECT average(newrelic.timeslice.value ) AS 'AppLaunch/Cold' FROM Metric WHERE metricTimesliceName = 'AppLaunch/Cold' AND entity.guid = 'YOUR_APP_TOKEN' SINCE 1664218800000 UNTIL 1664220600000 TIMESERIES

If no data appears, review your logcat output for errors.

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.