session-lifecycle

Installation
SKILL.md

Session Lifecycle (Android)

Manage session and stream state in DAT SDK integrations.

Create a DeviceSession with Wearables.createSession(...), start it, then attach capabilities such as camera streaming once the session is STARTED. Session lifecycle and capability lifecycle are related but distinct.

Session states

State Meaning App action
IDLE Session created, not started yet Call session.start()
STARTING Connecting to the device Show loading UI
STARTED Session active and ready for capabilities Add or use capabilities
PAUSED Session temporarily suspended Keep state, wait for resume or stop
STOPPING Session is shutting down Stop user work and wait
STOPPED Terminal; session ended Release resources and create a new session if needed

STOPPED is terminal: a stopped session cannot be restarted, so call Wearables.createSession(...) again for the next connection.

Installs
9
GitHub Stars
371
First Seen
Jun 16, 2026