The Android version is designed for APIs >= 21.
Neurosdk for android is distributed using JitPack as an aar library. Here is an example of adding SDK to an AndroidStudio project using gradle:
Add to `build.gradle` of project:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
And to `build.gradle` of app:
dependencies {
implementation 'com.github.BrainbitLLC:neurosdk2:version'
}
SDK uses a runtime permission to Bluetooth and Location, so you need to ask user about it. For this action SDK contains helper classes:
import com.neurosdk2.helpers.PermissionHelper;
import com.neurosdk2.helpers.interfaces.IPermissionListener;
...
if(!PermissionHelper.HasAllPermissions(ctx)){
PermissionHelper.RequestPermissions(ctx, (grantedPermissions, deniedPermissions, deniedPermanentlyPermissions) -> {
...
});
}
© Copyright 2016 - 2023 | BrainBit - EEG wearable headband | All Rights Reserved
A verification email has been sent to your email address
You have successfully subscribed to the SDK update mailing list.
Please, try again