Astra SDK problem in Android platfom

Dear all,

Currently I am experiencing an issue with the use of astra sdk on the android system. After downloading the latest ASTRA SDK 2.0.15 FOR ANDROID from Developers - ORBBEC - 3D Vision for a 3D World, I try to use the interface to get depth data and color data, the code is as follows.

final AstraAndroidContext aac = new AstraAndroidContext(getApplicationContext());
         try {

             StreamSet streamSet =;
             StreamReader reader = streamSet.createReader();

             reader.addFrameListener(new StreamReader.FrameListener() {
                 public void onFrameReady(StreamReader reader, ReaderFrame frame) {
                     Log.d("FRAME", "frame arrive");

//            PointStream pointStream = PointStream.get(reader);
//            pointStream.start();

             DepthStream depthStream = DepthStream.get(reader);

             while (true) {

 //            pointStream.stop();
         } catch (Throwable e) {
             Log.e("ASTRA", e.toString());
         } finally {

The runtime SDK throws a java.lang.UnsupportedOperationException: Invalid operation exception, and the debug finds an exception when executing DepthStream depthStream = DepthStream.get(reader);

If I get the point data (that is, the PointStream part of the code and comment out the DepthStream part), no exception is thrown, and the point data can be obtained normally.

PS: The case of getting color data is the same as the depth data, and an exception is thrown.

I am grateful to anyone who offers help, about how to get the right color and depth data.

Best regards.

1 Like

Hello Devin, Iā€™m facing exactly the same issue.
I could run the sample from this git: GitHub - Michael-List/Orbbec_Astra_Example_Android: Orbbec Astra example for Android) on a rooted Android 9.0 Android TV box device but I have the same exception when runnin on a non-rooted Android smartphone.

Any one has an insight on this?

In latest SDK version (2.0.17) the issue is fixed.