Case study · RE-AK Technologies

Four-sensor research app, in field use within a month

RE-AK Technologies needed its Hermes-Nucleus-Kit research workflow on a phone. We built Vizia Mobile from an empty repository and handed it to their engineer.

< 1 monthfrom an empty repository to real research sessions
4 sourcesrecorded together, screen off, for 1–4 hours
Most code keptby RE-AK's engineer after the handover
A researcher wearing the Hermes-Nucleus-Kit headset, holding a phone running Vizia Mobile
Hermes-Nucleus-Kit in use with Vizia Mobile
← All case studies
“Great job Zawar Nadeem, I'm a very satisfied customer, thank you for making the Vizia Mobile app.”
Frédéric SimardRE-AK Technologies
Client
RE-AK Technologies, a neurotechnology company in Quebec
Engagement
Project delivery: DEVSFLOW owned the Android app end to end, then handed it over to RE-AK's engineer
Product
Vizia Mobile, the Android app for the Hermes-Nucleus-Kit
Platform
Native Android (Kotlin)
01

The brief

RE-AK's Hermes-Nucleus-Kit records how people respond in real-world settings, combining an EEG headset, a wristband, a point-of-view camera and the phone's GPS.

RE-AK asked for one Android app a researcher could take into the field: four sources recording at once, sessions of one to four hours with the phone in a pocket, and every session delivered to their cloud.

What was at stake

Vizia Mobile screens

Home: status of the headset, camera and wristband
Home: status of the headset, camera and wristband
Headset connection screen
Headset connection screen
Operator consent, required before a session can start
Operator consent, required before a session can start
02

Our approach

Decision 01Give every device an explicit connection state
Context
With several devices connecting and dropping independently, ad-hoc status flags drift out of sync with reality.
Decision
One state machine per device as the single source of truth for connected, reconnecting and failed, read by every screen.
Tradeoff
More structure up front for each new device type, in exchange for one place to reason about connection behavior.
One connection state per device
One connection state per deviceEach device gets its own state machine. Screens read it instead of keeping their own flags, so the whole app agrees on whether a device is connected, reconnecting or failed. A lost link gets a limited number of retries, each on a fresh connection, so setup runs again; after that the device shows as failed until the user reconnects.DisconnectedConnectingConnectedReconnectingFailedstartlink uplink lostretry: new connection, setup againattempts used upuser retriesconnect fails
Each device gets its own state machine. Screens read it instead of keeping their own flags, so the whole app agrees on whether a device is connected, reconnecting or failed. A lost link gets a limited number of retries, each on a fresh connection, so setup runs again; after that the device shows as failed until the user reconnects.
Decision 02Serialize Bluetooth writes
Context
Starting a stream takes several Bluetooth writes in a row, and Android fails quietly when they overlap.
Decision
Route every Bluetooth write through one queue, and chain the setup steps so each starts from the previous callback.
Tradeoff
Slightly slower device setup, in exchange for removing a class of failures that are very hard to reproduce.
Bluetooth writes go through one queue
Bluetooth writes go through one queueFeatures never call Android's Bluetooth write APIs directly. Writes wait in one queue, and the next one starts only when Android reports the current one done. Setup steps such as MTU and service discovery are chained instead, each started from the previous callback.Enable notificationsSend a commandBluetooth write queueopopopopruns one at a timestartAndroid BluetoothBluetoothGattcallback → nextsetup steps: each starts from the previous callback
Features never call Android's Bluetooth write APIs directly. Writes wait in one queue, and the next one starts only when Android reports the current one done. Setup steps such as MTU and service discovery are chained instead, each started from the previous callback.
Decision 03Design for the screen being off
Context
Android stops background work whenever it can, and a session runs with the phone in a pocket.
Decision
Build for screen-off recording from day one, with every sensor stream stamped on the phone's clock.
Tradeoff
More platform work early on, in exchange for sessions that survive real field conditions.
03

How we worked with the team

04

For your tech lead

The technical patterns behind this work are written up in our own engineering notes, without client detail:

Next step

Tell us about your device and the data it produces. We'll tell you where the mobile work gets hard.

Book a 30-minute technical callor email info@devsflow.ca