An Android system for collecting data from electrophysiology sensors. These data are synchronized with EEGBase (http://eegdatabase.kiv.zcu.cz)
- Download and install Android SDK
- Cordova requires the
ANDROID_HOME
environment variable to be set. This should point to the[ANDROID_SDK_DIR]\android-sdk
directory (for examplec:\android\android-sdk
). - Next, update your
PATH
to include thetools/
andplatform-tools/
folder in that folder. So, usingANDROID_HOME
, you would add both%ANDROID_HOME%\tools
and%ANDROID_HOME%\platform-tools
Please refer to Ionic documentation
- Install both globally
npm install -g cordova ionic
Node.js verion 0.12.2 is required for the used node modules.
- Download and install Node.js 0.12.2
Run the following commands
git clone https://github.com/NEUROINFORMATICS-GROUP-FAV-KIV-ZCU/MoBio.git
npm install
ionic state reset
(recommended) orionic platform add [email protected]
ionic browser add crosswalk
- Run the command
ionic build android
- The APK is located in
[PROJECT_DIR]\platforms\android\build\outputs\apk
- Use APK for the required architecture, e.g.
android-armv7-debug.apk
- Run the command
ionic build --release android
- The APK is located in
[PROJECT_DIR]\platforms\android\build\outputs\apk
- Use APK for the required architecture, e.g.
android-armv7-release-unsigned.apk
To sign the unsigned APK, run the jarsigner
tool which is also included in the JDK:
You can use the signing key provided in this repository if you are member of Neuroinformatics group.
The password is required. You need to contact the Author.
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore mobio-release-key.keystore android-armv7-release-unsigned.apk mobio
Run the zip align tool to optimize the APK. The zipalign
tool can be found in /path/to/Android/sdk/build-tools/VERSION/zipalign
zipalign -v 4 android-armv7-release-unsigned.apk MoBio.apk
Now you have your final release binary called MoBio.apk.