Docs Menu

Atlas Device SDK for Java

Use the Atlas Device SDK for Java to develop Android apps in Java or Kotlin. To develop multiplatform apps using Kotlin Multiplatform (KMP), refer to the Kotlin SDK.

This SDK is in best-effort maintenance mode and no longer receives new development or non-critical bug fixes. To develop your app with new features, use the Kotlin SDK. You can use the Java SDK with the Kotlin SDK.

Learn more about how to Migrate from the Java SDK to the Kotlin SDK.

What You Can Do

Use the SDK's open-source database - Realm - as an object store on the device. Use Device Sync to keep data in sync with your MongoDB Atlas cluster and other clients.

1

Use the Gradle build system to install the Java SDK in your project.

2

Use Java or Kotlin to idiomatically define an object schema.

3

The SDK's database - Realm - stores objects in files on your device. Or you can open an in-memory database which does not create a file. To get started reading and writing data, configure and open a database.

4

Create, read, update, and delete objects from the database. Use Android-native queries to filter data.

5

Live objects mean that your data is always up-to-date. You can register a notification handler to watch for changes and perform some logic, such as updating your UI.

Atlas Device SDK Mobile Illustration
Essential Documentation
Tutorial Icon

Java Quick Start

Get started with the Java SDK.

Explore the Quick Start

Atlas Device SDK Icon

Java API Reference

Explore generated reference docs for the SDK's Java APIs.

Java API Reference

Atlas Device SDK Icon

Kotlin Extensions API Reference

Explore generated reference docs for the Kotlin Extensions APIs.

Kotlin Extensions Reference