Integrate Luciq on Android

This page covers how to install the Luciq SDK in your Android application.

circle-exclamation

Compile SDK Version

Installation

This installation process will install the Luciq SDK that supports Bug Reportingarrow-up-right, Crash Reportingarrow-up-right and App Performance Monitoringarrow-up-right.

Gradle

Add this line to your build.gradle file.

implementation 'ai.luciq.library:luciq:18.0.0' 

Maven

<dependency>
      <groupId>ai.luciq.library</groupId>
      <artifactId>luciq</artifactId>
      <version>18.0.0</version>
</dependency>

Using Luciq

In your Application class add this line to your onCreate method. This initializes Luciq with the default invocation event, Shake.

Initializing Luciqarrow-up-right in your application can also be done using one or multiple invocation events. All possible invocation events are explained in the invocationarrow-up-right section.

You can find your app token by selecting SDK Integration in the Settings menu of your Luciq dashboardarrow-up-right.

Permissions

Permissions are automatically added to your AndroidManifest.xml file. Some of them are required to be able to fetch information like network and WiFi connection. Others are used to allow your users to attach images, videos, and audio recordings. In general, permission requests don't appear unless your user attempts to use a feature requiring a permission.

The only exception is if you set the invocation eventarrow-up-right to be a Screenshot. In that case, the storage permission will be requested when your application launches. The screenshot invocation is a special case because there is no native event that tells the SDK that a screenshot has been captured. The only way to know is to monitor the screenshots directory. The SDK is invoked when a screenshot is added to the directory while your application is active.

You can remove any of the permissions if you will not be using the feature associated with it, as in the following example.

circle-exclamation

Required Permissions

circle-info

16KB Compatibility

From Android 15 (API 35), native (.so) libraries must support 16KB page sizes. Luciq supports this starting from version 13.4.0. Please upgrade if your app targets Android 15+ to avoid crashes. Learn morearrow-up-right.

Last updated