Phone → receive messages & files
Purpose
Walk through ingesting glass-originated text, binary chunks, and classic-BT audio streams on the phone.
Entry points
Phone home:
MainPhoneActivity→MessageReceiveActivity
Sample screen:
com.rokid.phone.MessageReceiveActivity
Platform
- Phone
Main files
Flow
- Register
IMessageListenerduring init. - Install
FileReceiveListenerfor both P2P and BT file channels. - Log inbound text for quick inspection.
- Route streaming classic-BT audio through
ExternalAudioPlayer.
Receive matrix
- Classic BT text
- P2P text
- Opaque stream chunks
- File downloads
Caveats
- Treat as a debug harness—replace log spam with production-grade state UI.
- Promote structured parsing + user-facing states when you graduate beyond lab tests.