Configure Android SDK

Getting started is easy:

  1. Visit https://app.logrocket.com to get an app ID
  2. Initialize the SDK in your application to start recording sessions
  3. Sanitize your data before sending it to LogRocket. Control what gets captured by filtering out any UI elements, text, or network data you don't want to include
  4. Capture network data
    1. The LogRocket Android SDK does not automatically capture Network Requests in your application. Follow the steps above to capture this information

After you finish setup, we recommend the following to enhance your sessions further:

  1. Identify users in LogRocket for easier search and enhanced analytics
  2. Upload mapping files for full stack trace visibility
  3. If you use WebViews in your app, follow these steps to capture them in session replay
  4. Tag key pages for precise navigation analytics
    1. LogRocket automatically captures Activity events for navigation tracking. However, you can enhance this by adding custom page tags to refine and optimize your navigation analytics further.
  5. Follow these instructions to upload your custom fonts on release builds
    1. If you use custom fonts, and notice missing icons or incorrectly sized text in Session Replay, you may want to upload your fonts to LogRocket. This will enable custom fonts to display in session replay.
  6. Enhance session recordings by setting custom events
    1. While LogRocket automatically captures standard events like clicks and navigation, you can enrich your data by defining custom events for specific business logic or unique interactions that you want to track.
  7. Manually log additional errors and exceptions

Not seeing what you're looking for? Check out the rest of our Android documentation for even more granular controls.