RADAR-base/radar-prmt-android

Name: radar-prmt-android

Owner: RADAR-CNS

Owner: RADAR-CNS

Description: Application to be run on an Android device to interact with the wearable devices & phone sensors for passive data streaming

Created: 2016-09-27 13:51:06.0

Updated: 2017-11-10 13:16:29.0

Pushed: 2018-01-26 16:11:50.0

Homepage:

Size: 2504

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

RADAR-pRMT

Application to be run on an Android 4.4 (or later) device with Bluetooth Low Energy (Bluetooth 4.0 or later), to interact with wearable devices. The app is cloned from the [Empatica sample app][2].

Currently the Empatica E4 and Pebble 2 are supported. Also note that the application only runs on an ARM architecture.

Screenshot

To clone this respository, use the command

clone --recursive https://github.com/RADAR-CNS/RADAR-AndroidApplication.git

If the repository is already cloned, go to the source directory and run

submodule update --init --recursive
Building

Copy the src/main/res/xml/remote_config_defaults_TEMPLATE.xml from the RADAR-Commons repository to app/src/main/res/xml/remote_config_defaults.xml. These are the configuration defaults for the app.

Plugins

This application depends on plugins to collect information. The application currently supports plugins the following plugins:

See the link to each plugin for its installation instructions. In general, a dependency needs to be added in build.gradle, and a service needs to be aded in the device_services_to_connect property in app/src/main/res/xml/remote_config_defaults.xml.

Setup Firebase Remote Configuration

Firebase can be used to remotely configure some device and system parameters, e.g. the E4 API key, kafka server address and upload rate. The default parameters are also stored locally in app/src/main/res/xml/remote_config_defaults.xml, which will be used if the remote parameters cannot be accessed.

  1. Install the Firebase SDK in Android Studio.
  2. Login to a Google account.
  3. In the Firebase console, add the app (org.radarcns.android) to a new Firebase project.
  4. Download the google-services.json from the Firebase console (under Project Settings) and move the file to the common-android/ folder.
  5. [Optional] Set the parameter values on the server. The avaiable parameters can be found in app/src/main/res/xml/remote_config_defaults_TEMPLATE.xml. Note - Set the unsafe_kafka_connection parameter to true if the server with kafka and schema-registry is using a self-signed certificate over SSL. If the certificate is issued by a valid CA then leave it to false. In production, do NOT set this value to true.

Full Firebase guide

Contributing

To add additional plugins to this application, make the following steps (see the Pebble plugin as an example):

This plugin can remain a separate github repository, but it should be published to Bintray for easy integration.

Android Installation

The guide for installing Android on Raspberry Pi3 and UDOO boards is available here


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.