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 |
---|---|
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($activityName)