Skip to content

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:

  • MainPhoneActivityMessageReceiveActivity

Sample screen:

  • com.rokid.phone.MessageReceiveActivity

Platform

  • Phone

Main files

Flow

  1. Register IMessageListener during init.
  2. Install FileReceiveListener for both P2P and BT file channels.
  3. Log inbound text for quick inspection.
  4. 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.