Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 3.22 KB

android.md

File metadata and controls

41 lines (30 loc) · 3.22 KB

📌 The SDK 2.0 delivers cross-platform open source libraries & tools that allow users to develop on multiple Operating Systems & development environments. Intel has validated SDK2.0 on Windows and Linux platforms. Please check latest Release for the build versions. While Intel has not explicitly validated SDK2.0 on Android platforms, it is expected to work on Android as well. Please refer to the build instructions in the section below. Calibration and firmware update tools that would be used in production and manufacturing processes are not available on Android at this time. Please contact your Intel representative for additional information.

📌 The T265 tracking module is not yet supported on Android via librealsense. Support is planned to be added in a future release.

Intel® RealSense™ SDK 2.0 for Android OS

Using the Android wrapper allows you to build both native (C/C++) and Java applications for Android. In order to do that a RealSense Android App need to include librealsense.aar (Android Archive) in it's dependencies. The AAR file is responsible to acquire camera access permissions and it also provides a JNI based RealSense Java API.

Previous Android solution was limited to rooted devices only, but is still available here

Ingredients

Before jumping to the instructions section please ensure you have all the required accessories.

  1. Android target device with Android version >= 4.4 that supports OTG feature.
  2. Android Studio IDE.
  3. USB3 OTG cable.

Build A RealSense Application

We provide two stand alone examples that demonstrates how to link with librealsense AAR from the maven repository. These two examples focus on the grudle configuration and contains minimal code. Follow the Java example or Native example for more details. You can also build RealSense AAR from source and add the generated AAR as a dependency as described here. Graphical Java examples such as 'capture', 'recording' and 'playback' are available in the examples folder as part of the Android wrapper project.

Below is an example of an application with librealsense on the android platform.

Releases

The Releases of the Android Wrapper can be found in the following repository: https://egiintel.jfrog.io/ui/repos/tree/General/librealsense

The artifacts that are available in this repository are (to be used as written in the a.m. instructions):

File Description
camera-<version-number>.apk The camera application
librealsense-<version-number>.aar Handles camera permissions and JNI based RealSense Java API.
librealsense-<version-number>.pom Representation of the Maven project
librealsense-<version-number>.zip Headers of the librealsense2 SDK