Android

UXCam Android SDK Installation & Quick Start

pod versionpod version

Follow the instructions below for the integration using either Java or Kotlin.

SDK Integration

Gradle

  1. In the module's build.gradle file add UXCam:

    repositories {
      maven{ 
         url 'https://sdk.uxcam.com/android/' 
      } 
    } 
    dependencies { 
         implementation 'com.uxcam:uxcam:3.5.1' 
    }
    
  2. In every activity that is an entry point to your app, add

    import com.uxcam.UXCam;
  3. In your launcher activity, add as well:

    import com.uxcam.datamodel.UXConfig
    
  4. First, you need to create a configuration object with desired settings and then start UXCam using this configuration object:

UXConfig config = new UXConfig.Builder('yourAppKey')
    .enableAutomaticScreenNameTagging(true)
    .enableImprovedScreenCapture(true)
    .build()

val config = UXConfig.Builder("yourAppKey")
    .enableAutomaticScreenNameTagging(true)
    .enableImprovedScreenCapture(true)
    .build()

  1. Start UXCam inside onCreate method. Your App-key is available from UXCam dashboard.
    UXCam.startWithConfiguration(config);
    

πŸ‘

This will complete the integration process.
Your session will be shown on the dashboard within a few seconds after the app goes in the background.

You can optionally use the API'es for customization such as identifying users from your database with UXCam, tag screens or hiding sensitive views.


Available Configuration Options:


enableAutomaticScreenNameTagging(boolean enable)

Set as false to disable automatic screen tagging if manual tagging of the screens will be done. Default status is true

enableMultiSessionRecord(boolean enable)

UXCam will automatically record a session if the application is returning from the background. In case you DON'T want to do it, you can call this method and call it as false.

enableCrashHandling(boolean enable)

Crash handling is enabled by default, to let you capture all the sessions with crashes and see the corresponding crash logs.

enableImprovedScreenCapture(boolean enable)

UXCam will automatically record the screens in your application, in case you have Hardware layer screens then it's highly recommended to call it as true.

πŸ“˜

SDK Updates

To check all the information on the fixes and improvements on the latest versions of the SDK, please visit this page.


Video Tutorial


What’s Next