This project is no longer maintained. Required dependencies may no longer be available.
Example software for getting started with Mist Ui development. It demonstrates creating a Mist Ui as a native Android App. This software is freshly baked, expect problems. We are working on it.
- Android Studio (tested in 2.3)
- Wish - Peer-to-peer trustbased networking layer (https://mist.controlthings.fi/dist/Wish-v0.3.4.apk)
- Mist - IoT layer for Wish (https://mist.controlthings.fi/dist/Mist-v0.4.0.apk)
- Mist GPS - An android Service playing the role of a Mist Node/Device. (https://mist.controlthings.fi/dist/mist-gps-android-v0.1.0.apk or get source code https://github.com/ControlThings/mist-gps-android)
Download and install Wish, Mist and the MistGps service.
You need to create a user in the Mist application when you first start it up. Swipe to the Users-tab and click the plus-sign in the bottom right corner. Write a user name you want to use, and an identity will be generated for you.
- Clone this repository and open it in Android Studio
- Attach a phone with Android 4.4 or newer (Android 7 not yet supported)
- Start Mist GPS and Mist
- Verify that you see the GPS in the Systems-tab from the Mist App on your phone.
- Deploy the Mist Gps Ui app from Android Studio
- Select settings from menu to select peers for the app. You should then be able to click on the GPS in the peers list to give the Ui access to the Mist GPS.
See the source code for more documentation. All relevant code is in MainActivity.java
.
This is based on an android port of the Mist library, and is very limited in its capabilities, and you can probably break it in several ways.