androidAndroid | Getting Started

By downloading this developer SDK you are agreeing to our non-commercial developer license agreement, if you'd like a commercial license please contact us at business@choosemuse.com

  1. Install Android Studio

    Download Android Studio & install it.

    Run Android Studio. On the Android Studio splash page, click on Configure and select SDK Manager. If you already have a project open, you can find the SDK Manager under Tools -> Android -> SDK Manager.

    Select these packages and install them if they are not already installed:

    • Under SDK Platforms: Android 6.0 (API 23)
    • Under SDK Tools: Android SDK Build Tools
    • Although not required, you may also want to install additional SDK platforms such as Android 7.0 (API 24), Android 5.0 (API 21) and Android 4.4.2 (API 19).
  2. Install LibMuse and open the example project

    Download and install LibMuse for Android and open Android Studio.

    Click “Open an existing Android Studio project” or “File -> Open and navigate to libmuse_X.Y.Z/android/examples where libmuse_X.Y.Z corresponds to the LibMuse version, e.g. libmuse_6.0.0 for LibMuse version 6.0.0.

    Select TestLibMuseAndroid and open it. If you are prompted to update the gradle wrapper, perform the update.

    Once the project has opened, press the “project” tab on the left side.

  3. Build the project

    Go to Build -> Make Project.

    You should see “BUILD SUCCESSFUL” in the Messages panel.

  4. Pair Muse with your Android device

    Look at the power button on the right earpiece of your headband. If there is a power symbol on the button, simply turn the headband on. If the power button is blank, follow the instructions below:

    In the Settings menu of your device, tap on Bluetooth.

    Put Muse into Pairing Mode by holding the button down for five seconds until all five LEDs begin flashing on and off in unison. Release the button.

    If there is a Search for Available Devices or similar button, tap it. After a few seconds Muse will appear in the list of Available Devices. Tap on it.

    If you are prompted to accept a pairing request from Muse, tap Accept.

    Wait a few seconds for the pairing process to complete. When it is, Muse will be added to the list of Paired Devices.

  5. Run the project

    Plug in an Android device to your computer.

    Go to Run -> Run app. You will see the example app appear on your Android device.

    With Muse paired with your Android device, tap Refresh. Select your headband in the list and then click Connect.

    Once Muse connects, you will see the EEG and accelerometer data start to update. Place Muse on your head and after a few seconds the Muse Elements numbers will start to change.

    Voila!

    android_getstarted_connected

What’s next?

Project Setup
Project Setup
Create your own application

API Reference
API Reference
Dive straight into the LibMuse API

Forum
Forum
Questions? Ideas? Cool project to share?