You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/BuildBrainFlow.rst
+28-12Lines changed: 28 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -253,29 +253,38 @@ To check supported boards for Android visit :ref:`supported-boards-label`
253
253
Installation instructions
254
254
~~~~~~~~~~~~~~~~~~~~~~~~~~~
255
255
256
-
- Create Java project in Android Studio, Kotlin is not supported
257
-
- Download *jniLibs.zip* from `Release page <https://github.com/brainflow-dev/brainflow/releases>`_
258
-
- Unpack *jniLibs.zip* and copy it's content to *project/app/src/main/jniLibs*
259
-
- Download *brainflow-jar-with-dependencies.jar* from `Release page <https://github.com/brainflow-dev/brainflow/releases>`_ or from `Github package <https://github.com/brainflow-dev/brainflow/packages/290893>`_
260
-
- Copy *brainflow-jar-with-dependencies.jar* to *project/app/libs folder*
256
+
- Create an Android project in Android Studio
257
+
- Download *brainflow-android.aar* from `Release page <https://github.com/brainflow-dev/brainflow/releases>`_
258
+
- Copy *brainflow-android.aar* to *project/app/libs*
Now you can use BrainFlow SDK in your Android application!
263
266
264
267
Note: Android Studio inline compiler may show red errors but it should be compiled fine with Gradle. To fix inline compiler you can use *File > Sync Project with Gradle Files* or click at *File > Invalidate Cache/Restart > Invalidate and Restart*
265
268
266
-
Prebuild libraries for *jniLibs.zip* are complied using:
269
+
Prebuilt libraries inside *brainflow-android.aar* are compiled using:
267
270
268
271
- Android NDK 25.1.8937393
269
-
- *-DANDROID_NATIVE_API_LEVEL=android-24*
272
+
- *-DANDROID_NATIVE_API_LEVEL=android-31*
273
+
274
+
Prebuilt Android libraries require API 31 or newer. BLE support is always enabled for Android builds and the SimpleBLE bridge is packaged into the AAR.
270
275
271
276
.. compound::
272
277
273
-
For some API calls you need to provide additional permissions via manifest file of your application ::
278
+
The AAR declares Bluetooth permissions via its manifest, but Android 12+ still requires runtime approval for :code:`BLUETOOTH_SCAN` and :code:`BLUETOOTH_CONNECT` before creating a BrainFlow BLE board. For network or storage boards, or if you do not use manifest merging, add the required permissions to your application manifest manually ::
Copy file name to clipboardExpand all lines: docs/SupportedBoards.rst
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -751,7 +751,7 @@ Supported platforms:
751
751
Muse
752
752
------
753
753
754
-
Muse startup commands can be selected with :code:`BrainFlowInputParams.other_info`. Use a shorthand such as :code:`p21` or a key-value form such as :code:`preset=p21`. If :code:`other_info` is empty, BrainFlow uses the default command listed in the device section. :code:`low_latency` is only supported for MuseS Anthena.
754
+
Muse startup commands can be selected with :code:`BrainFlowInputParams.other_info`. Use a shorthand such as :code:`p21` or a key-value form such as :code:`preset=p21`. If :code:`other_info` is empty, BrainFlow uses the default command listed in the device section. :code:`low_latency` is only supported for MuseS Athena.
755
755
756
756
757
757
Muse S
@@ -821,7 +821,7 @@ Available :ref:`presets-label`:
821
821
- :code:`BrainFlowPresets.ANCILLARY_PRESET`, it contains PPG data, to enable it use :code:`board.config_board("p61")`
@@ -917,7 +917,7 @@ Available :ref:`presets-label`:
917
917
918
918
- :code:`BrainFlowPresets.DEFAULT_PRESET`, it contains EEG data, sampling rate is 256 Hz. For 4-channel Muse presets BrainFlow exposes :code:`TP9`, :code:`AF7`, :code:`AF8`, and :code:`TP10` as EEG channels. For 8-channel Muse presets the additional Muse EEG values are exposed as other channels.
919
919
- :code:`BrainFlowPresets.AUXILIARY_PRESET`, it contains Accelerometer and Gyro data, sampling rate is 52 Hz.
920
-
- :code:`BrainFlowPresets.ANCILLARY_PRESET`, it contains optics and battery data. Optics sampling rate is 64 Hz. MuseS Anthena uses optics data for PPG, and BrainFlow exposes this data as optical channels instead of PPG channels. Depending on selected Muse preset, the stream contains 4, 8, or 16 optical channels.
920
+
- :code:`BrainFlowPresets.ANCILLARY_PRESET`, it contains optics and battery data. Optics sampling rate is 64 Hz. MuseS Athena uses optics data for PPG, and BrainFlow exposes this data as optical channels instead of PPG channels. Depending on selected Muse preset, the stream contains 4, 8, or 16 optical channels.
0 commit comments