Chat now
Start trial
Getting Started with Ease
Add the Logify Client to Your Project

In your application module's build.gradle file, do the following:

  1. In the dependencies section, declare the logify-alert-android library dependency:

    compile "com.devexpress.logify:logify-alert-android:1.0.1"
  2. In the repositories section, declare the Logify Alert's maven repository:

    maven {
      url "https://github.com/DevExpress/Logify.Alert.Clients/raw/maven"
    }
  3. In the defaultConfig section, ensure that minSdkVersion is set to a value from 17 to 27.

In the pom.xml file, do the following:

  1. In the dependencies section, declare the logify-alert-android library dependency:

    <dependency>
      <groupId>com.devexpress.logify</groupId>
      <artifactId>logify-alert-android</artifactId>
      <version>1.0.1</version>
    </dependency>
  2. In the repositories section, declare the Logify Alert's maven repository:

    <repository>
      <id>any-name-or-id</id>
      <url>https://github.com/DevExpress/Logify.Alert.Clients/raw/maven </url>
    </repository>
  3. In the defaultConfig section, ensure that minSdkVersion is set to a value from 17 to 27.

In the AndroidManifest.xml file, add the following permission to allow your application to access the Internet and send reports to the Logify Alert service:

<uses-permission android:name="android.permission.INTERNET" />
Send Reports to Logify
import com.devexpress.logify.alert.android.LogifyAlert;

LogifyAlert client = LogifyAlert.getInstance();
client.setApiKey("YOUR_API_KEY");
client.setContext(this.getApplicationContext()); // Optional but recommended.
client.startExceptionsHandling();
That’s it! Your application is ready to report all unexpected crashes to DevExpress Logify.
Refer to our documentation for more information.
Start Your 15-Day Trial Today