1. Android Studio Installation

MetaSensors are supported on Android.

For this tutorial, we will use Android Studio in Windows. Our APIs are available in Java.

Android developers can create Apps for Android devices. Any App you develop with our APIs can be released on the Google Play store.

You should be familiar with the Java language and know how to deploy Apps before starting the Android Java tutorials.

Warning

We have NOT tested Android Studio with our APIs on Linux or MAC.

1.1. Requirements

You will need to consider the following before starting the installation:

  • Make sure your OS and supporting tools are up to date.

1.1.1. Bluetooth

  • Make sure your Android test device (such as an Samsung tablet or Google Pixel) supports Bluetooth4.0+

  • Make sure your Android device is running at least Android 4.3+ (numerous bug fixes in 4.4+)

1.2. Installation

_images/studio-homepage-hero.jpg

If you are new to Android development, download the latest version of Android Studio and enable debugging over USB on your Android device.

To install Android Studio on Windows, proceed as follows:

  1. If you downloaded an .exe file (recommended), double-click to launch it.

    If you downloaded a .zip file, unpack the ZIP, copy the android-studio folder into your Program Files folder, and then open the android-studio > bin folder and launch studio64.exe (for 64-bit machines) or studio.exe (for 32-bit machines).

  2. Follow the setup wizard in Android Studio and install any SDK packages that it recommends.

That’s it. The following video shows each step of the setup procedure when using the recommended .exe download.

As new tools and other APIs become available, Android Studio tells you with a pop-up, or you can check for updates by clicking Help > Check for Update.

1.3. Recommendation

Please checkout the latest from the Android developer site regarding Bluetooth Low Energy support: https://developer.android.com/guide/topics/connectivity/bluetooth-le

A minimum of Android 4.3 (SDK 18) is required to use this library, however for the best results, it is recommended that users be on Android 4.4 (SDK 19) or higher.

Also please check your hardware, some Android phone and tablets do NOT support Bluetooth Low Energy or may do so, but not reliably. There is lots of device variation across Android tablets. Not all of them come with Bluetooth Low Energy so it’s important to check.

Most phones that were made in the pre Ice Cream Sandwich Android era offered minimal or no BLE support. For example, the Galaxy S3 does not support BLE. Save yourself a headache and develop your Android App on a reliable new BLE compliant smartphone.

1.4. Deployment

_images/android-studio-0.jpg

1.4.1. Developer Program

Google provides a great tutorial to publish, manage, and distribute your app worldwide: https://developer.android.com/distribute/best-practices/launch

_images/android-studio-1.png