RICOH THETA X plugin camera api sample full build tutorial - updated for 2025

See next post for build on January 9, 2025. No modifications needed for build.

RICOH THETA X plugin introduction showing the theta-plugin-camera-api-sample-x open source sample code. I used version 1.5.0 of the sample.

The new sample added RicStillCaptureYuvHhHdr. Version 1.4 added an example for ImageFormat.NV21. version 1.2 added Bluetooth remote shutter trigger.

Code used in this tutorial:

The THETA X must be in developer mode and adb must be able to detect the camera. Go to the community forum and search for basic plugin steps if you are just getting help. The community forum is at community.theta360.guide

Configuration on my system

In gradle.properties

org.gradle.jvmargs=-Xmx1536M \
--add-exports=java.base/sun.nio.ch=ALL-UNNAMED \
--add-opens=java.base/java.lang=ALL-UNNAMED \
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED \
--add-opens=java.base/java.io=ALL-UNNAMED \
--add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED

In gradle-wrapper.properties, I set the version of gradle to 7.2

environment

  • theta-plugin-camera-api-sample version 1.5
  • Android Studio Hedgehog 2023.1.1 Patch 2
  • gradle 7.2

Version 1.5.1 just released on January 7, 2025.

This is the description of the upgrade:

Update AGP to version 8.7.3, and enable using AndroidX


test install

Android Studio Ladybug | 2024.2.1 Patch 3

works with no modification to Gradle file

Simply connect the THETA X to the computer with a USB cable and run the sample app in Android Studio.