• Log inStart now

withLaunchActivityName (Android SDK API)

Syntax

NewRelic.withLaunchActivityName(string $activityName)

Set the target activity name for app launch time to calculate the cold time and hot time.

Requirements

Agent version 6.9.0 or higher.

Description

By default, the New Relic Android agent calculates the cold time and hot time when the default activity is loaded. This API allows you to customize the target launch activity name when calculating the cold time and hot time.

For general info on using this API, see the Android SDK API usage guide.

Parameters

Parameter

Description

$activityName

string

Required. String indicating the target activity name to calculate cold time and hot time

Examples

Set activity name

Example of setting an activity name:

NewRelic.withLaunchActivityName(this.)
Copyright © 2022 New Relic Inc.

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