# 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

- [MessageReceiveActivity.kt](https://gitee.com/as_pixar/glass3sdkdemo/blob/main/glass3sdkphonedemo/app/src/main/java/com/rokid/phone/MessageReceiveActivity.kt)
- [ExternalAudioPlayer.kt](https://gitee.com/as_pixar/glass3sdkdemo/blob/main/glass3sdkphonedemo/app/src/main/java/com/rokid/phone/utils/ExternalAudioPlayer.kt)

## 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.  
