Skip to content

Latest commit

 

History

History
executable file
·
18 lines (11 loc) · 2.29 KB

README.md

File metadata and controls

executable file
·
18 lines (11 loc) · 2.29 KB

liblsl-android-builder

This Android App simple project builds LSL (LabStreamingLayer) library liblsl.so for architectures arm64-v8a, armeabi-v7a, x86, and x86_64 on Android Studio. A demonstration App that uses LSL is also included on it (more details below).

When the build is ready, the library files are inside liblsl-android-builder/libs/debug/ and liblsl-android-builder/libs/release/. To avoid building it, you can also download them from the last release.

To build it yourself and/or to know more about how to include it on your Android project, check the details under the builder app module instructions file (build.gradle).

There it is also explained how to make the build directly using the compiled/build library liblsl.so. But in a nutshell, just extract the architecture folders either from your own build or from the lastest release (liblsl-version) into the jniLibs folder (e.g. app-root/module-root/src/main/jniLibs for release build, app-root/module-root/src/debug/jniLibs for debug one). Also, do not include (or just comment) the CMake blocks from build.gradle (externalNativeBuild and externalNativeBuild.cmake) and it will work.

Demo App (LSL Markers Sender Example)

This demo App sends the button label of the button pressed/clicked (A or B) as triggers or markers using a LSL stream. You can test the App by either building and running it on Android Studio or directly installing the APK release.

keyboard-trigger

The file where the actual LSL API is used is on MainActivity.java. For more examples, check the official community examples from the LSL Java repo.