Glass → receive messages & files
Purpose
Show how the glasses ingest phone-originated text, files, mirrored notifications, and PCM streams.
Entry points
Glass home:
HomeActivity→MessageReceiveActivity
Sample screen:
com.rokid.glass.MessageReceiveActivity
Platform
- Glass
Main file
Flow
- Register
IMessageListenerwhenever the Activity resumes needing traffic. - Install file listeners for BT + P2P lanes separately (directory routing differs).
- Subscribe to mirrored notification intents from the handset.
- Feed decoded PCM snippets into
AudioTrackplumbing for preview.
Feature checklist
- Text ingress
- File saves
- Streamed audio decode
- Mirrored handset notifications
- Optional face-notification snapshot archiving
FAQ
Where mirrored notifications surface
Handled through the glass-side notification bridge; this sample simply logs payloads—swap for HUD cards/timeline UX in product builds.
Caveats
- Screen stays awake for marathon debug sessions — adjust wakelocks for prod.
- Matching encoder parameters between sender/receiver avoids pops/dropouts.