# Build from Scratch

> Add the Glassly Bluetooth SDK to your own mobile app.

Source: https://docs.glassly.ai/bluetooth-sdk/build-from-scratch/

This is how to add the Glassly Bluetooth SDK to your own app from scratch. Choose
your platform below for the complete installation, permissions, configuration,
and connection flow.

If you want to try the SDK before integrating it, start with the
[Quickstart](https://docs.glassly.ai/bluetooth-sdk/quickstart.md) and run a complete example app.

Use a physical phone for Bluetooth testing. Simulators and emulators are useful
for UI and compile checks, but they do not provide the real Bluetooth path.

Bluetooth SDK `0.4.2` requires the matching Mentra Live
`0.4.2` glasses software. Every SDK release requires the Mentra Live
software release with the same version number.

## Choose Your Platform

- [React Native / Expo](https://docs.glassly.ai/bluetooth-sdk/react-native-expo.md)
Install `@glassly/bluetooth-sdk`, configure its Expo plugin and permissions,
create a native build, and connect.
- [Android](https://docs.glassly.ai/bluetooth-sdk/android.md)
Add the Maven package, configure Android permissions and native libraries,
and connect from Kotlin.
- [iOS](https://docs.glassly.ai/bluetooth-sdk/ios.md)
Add the Swift package, configure iOS permissions and background modes, and
connect from Swift.

## Integration Sequence

Each platform guide walks through the same core sequence:

1. Add the platform package to your existing app.
2. Configure Bluetooth, microphone, local-network, and notification permissions
   required by the features you use.
3. Scan for Mentra Live, let the user choose a device, and connect.
4. Read SDK status and keep your UI derived from the latest connection state.
5. Check for and install the [matching Mentra Live software](https://docs.glassly.ai/bluetooth-sdk/software-update.md)
   before testing SDK features.

## Continue Building

Once your app connects, use the guides below to add glasses features.

- [API Reference](https://docs.glassly.ai/bluetooth-sdk/api-reference.md)
Explore lifecycle methods, commands, events, and status models.
- [Camera and Streaming](https://docs.glassly.ai/bluetooth-sdk/camera-streaming.md)
Capture photos and video or stream to your own ingest endpoint.
- [Audio](https://docs.glassly.ai/bluetooth-sdk/audio.md)
Use microphone input, transcription events, and speaker playback.
- [Hardware](https://docs.glassly.ai/bluetooth-sdk/hardware.md)
Handle buttons, touch, LEDs, battery, and capability state.
