• EnglishEspañol日本語한국어Português
  • ログイン今すぐ開始

この機械翻訳は、参考として提供されています。

In the event of any inconsistency between the English version and the translated version, the English versionwill take priority. Please visit this page for more information.

問題を作成する

アプリ起動時のアクティビティに名前を付ける

構文

Java

NewRelic.withApplicationToken(apptoken).withLaunchActivityName().start(this.getApplication());

コトリン

NewRelic.withLaunchActivityName(className: String?)

コールドタイムとホットタイムを計算するアプリ起動時間の対象アクティビティ名を設定します。

説明

デフォルトでは、New Relic Android エージェントは、デフォルトのアクティビティが読み込まれるときのコールド タイムとホット タイムを計算します。この API を使用すると、コールド タイムとホット タイムを計算する際に、ターゲットの起動アクティビティ名をカスタマイズできます。

パラメーター

パラメータ

タイプ

説明

$activityName

必須。コールドタイムとホットタイムを計算する対象のアクティビティ名を示す文字列

アクティビティ名を設定

アクティビティ名の設定例を次に示します。

Java

NewRelic.withLaunchActivityName($activityName)

コトリン

NewRelic.withApplicationToken("apptoken").withLaunchActivityName($activityName).start(applicationContext)
Copyright © 2024 New Relic株式会社。

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