Skip to content
Examples for ObjectBox Android/Java, the super-fast database
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
android-app-arch Rename objectbox-arch-example to android-app-arch. Apr 1, 2019
android-app-kotlin Rename objectbox-kotlin-example to android-app-kotlin. Apr 1, 2019
android-app-relations Rename objectbox-relation-example to android-app-relations. Apr 1, 2019
android-app Rename objectbox-example to android-app. Apr 1, 2019
gradle/wrapper gradlew wrapper --gradle-version=4.10.2 and Android Plugin 3.2.1 Dec 10, 2018
java-main-maven Updating READMEs for plain Java Mar 28, 2019
java-main Updating READMEs for plain Java Mar 28, 2019
.gitignore Migrate arch example to AndroidX. Feb 26, 2019
Jenkinsfile Jenkinsfile: post result to GitLab. Nov 27, 2018 README: rename Android projects. Apr 1, 2019 script to build desktop only Nov 3, 2017
build.gradle objectboxVersion = '2.3.4' Mar 19, 2019 Migrate arch example to AndroidX. Feb 26, 2019
gradlew make gradlew executable Nov 3, 2017
gradlew.bat, gradle 3.3 Mar 7, 2017


Java and Kotlin examples for ObjectBox, the superfast object-oriented database. The basic example is a minimal note taking app.

For Android, there are:

  • android-app: Java based note taking app
  • android-app-kotlin: Kotlin based note taking app
  • android-app-relations: Demonstrating relations (Java based app)
  • android-app-daocompat: DAO compat is a compatibility layer on top of ObjectBox emulating a greenDAO API

For plain Java, you'll find those:

  • java-main: using ObjectBox in a Java application
  • java-main-maven: while the primary build system for ObjectBox is Gradle, you can also use Maven

MyObjectBox missing? Build the project!

When you open the project in an IDE like Android Studio for the first time, it will complain that it does not find the class MyObjectBox. This is expected because this class is generated during build time. Thus, once you build the project, everything should be fine.


ObjectBox Documentation

ObjectBox Features

ObjectBox repo (to report issues)

You can’t perform that action at this time.