Try it free

Get started with Android monitoring

  • Dynatrace Classic
  • How-to guide
  • 2-min read

To monitor your Android app, you first need to create a mobile application in Dynatrace and then instrument your actual Android app.

Step 1

Create a mobile application in Dynatrace

Step 2

Instrument your Android app

Step 3

Fine-tune the instrumentation

Step 1 Create a mobile application in Dynatrace

Before instrumenting your actual Android app, create a mobile application in Dynatrace. You will use this application to monitor and analyze your Android app.

To create a mobile application in Dynatrace

  1. In Dynatrace, go to Mobile.
  2. Select Create mobile app.
  3. Enter a name for your application and select Create mobile app. The application settings page opens.

Step 2 Instrument your Android app

When you have a mobile application in Dynatrace, instrument your actual Android app with the Dynatrace Android Gradle plugin or OneAgent SDK for Android.

Dynatrace Android Gradle plugin

To auto-instrument your Android project, use the Dynatrace Android Gradle plugin. It integrates the auto-instrumentation process into your Android build.

OneAgent SDK for Android

If you can't use our plugin due to technical limitations, try standalone manual instrumentation with OneAgent SDK.

Step 3 Fine-tune the instrumentation

After you've instrumented your Android app, you might want to configure some additional settings:

  • Adjust communication with OneAgent SDK for Android
  • Configure the auto-instrumentation process
  • Create custom actions, report errors, tag specific users, and more using OneAgent SDK for Android
  • Enable and configure Session Replay on crashes
  • Configure the data privacy settings
  • Learn what data Dynatrace captures for your Android app to complete or update the Data safety form in Google Play Console

Access mobile instrumentation wizard

The mobile instrumentation wizard in Dynatrace provides you with get-started instructions on instrumenting your mobile applications. The wizard also contains code snippets with your application identification keys that you'll need to add to your project's build file. The application identification keys—applicationId and beaconUrl—are required so that your application can send monitoring data to Dynatrace.

  1. Go to Mobile.
  2. Select the mobile application that you want to configure.
  3. Select More (…) > Edit in the upper-right corner of the tile with your application name.
  4. From the application settings, select Instrumentation wizard.
  5. Select Android.

Related topics

  • Dynatrace Android Gradle plugin
  • Manually instrument your application using OneAgent SDK for Android
Related tags
Digital ExperienceMobileMobile