# Glass → send messages & files

## Purpose

Demonstrate how the glasses push text, files, and tagged streams back to the phone while also hosting several experimental toggles on one screen.

## Entry points

Glass home:

- `HomeActivity` → `SendMessageActivity`

Sample screen:

- `com.rokid.glass.SendMessageActivity`

## Platform

- Glass

## Main file

- [SendMessageActivity.kt](https://gitee.com/as_pixar/glass3sdkdemo/blob/main/glassdemo/app/src/main/java/com/rokid/glass/SendMessageActivity.kt)

## What this page bundles

- P2P / BT text  
- P2P / BT file transfers  
- PCM/H264 stream experiments  
- Voice + offline wake-word scratchpad  
- Camera share + QR helper snippets  

## Flow highlights

### Text & files

- `sendTextMessageByP2P(...)` / `sendTextMessageByClassicBT(...)`  
- `glassFileOperater.sendFile(...)` / `glassBtFileOperater.sendFile(...)`

### Streams

- `sendStreamData(...)` with explicit tags for downstream demuxing.

## FAQ

### Why the UI feels busy

Engineering teams keep many smoke tests on one Activity for efficient QA. Product surfaces should copy only the lanes they need.

## Caveats

- Bundles large local fixtures; treat directory sizes before shipping.  
- Large blocks remain commented—this file is a lab bench, not a shipping screen.  
- For production, lift only the stable text/file paths.  
