Getting Started on Android

Introduction

This manual gives brief instructions to get the Matlab-Connector sample applications built and deployed on Android. Namely, those are MLC-Cluster and MLC-Signals.

This Guide addresses the experienced user, therefore the obvious points will not be explained here. Topic are only the essential steps, but not things like the usage of the build tool CMake.

 

Abbreviations / Terminology

Abbreviation Terminology
CANDERA CANDERA GmbH
ADB Android Debug Bridge, an important management tool

Prerequisites

CMake GUI

For building, the tool cmake-gui is needed. Navigate to https://cmake.org/download/ and download the latest stable version for your PC, 64bit etition and install it.

Ninja build tool

For building android applications, yet another build tool is required.

 

Android Studio

Building an Application Library

Deploying the Asset Library

Before an android application can be launched, the asset library has to be deployed on the Android device. Now the tool ADB (Android Debug Bridge) comes into play, which is part of the sdk-platform tools. It is a command line tool which has to be called e.g. within a Windows CMD. ADB is a general device management tool for Android.

The most important tasks are:

The most important commands for this work are:

drawing-5-1706252739.png

 Steps for deploying the AssetLib on the Android device:

 /sdcard is the internal or external storage on Android. That’s the location, where the app expects the asset library.

Generating and deploying an Android-App

Now an android studio project skeleton is needed for constructing a so-called apk file, which is the format of android app packages, like those on Google AppStore.

Trouble-Shooting