FLAME DOCUMENTATIONIn Flame IDE
Mobile Preview
Run Android devices and iOS simulators in a dedicated IDE panel, with live previews, logs, and deliberate AI context.
Open the Mobile panel
The device preview lives in the right activity bar, below My Activity.
- Click Mobile in the right activity bar. You can start an emulator before opening a project.
- Choose Devices in the header. Expand Favorites, Physical devices, or Virtual devices.
- Choose Use for a running target or Start for a powered-off virtual device. Wait for it to boot and the preview to connect.
- Star a device to keep it in Favorites. Use Refresh devices after connecting a phone or changing your SDK setup.
Set up Android
Use an Android emulator or a physical Android device authorized on this computer.
- Install Android Studio or the Android SDK command-line tools, including platform-tools and the emulator. If needed, set ANDROID_HOME to the SDK folder and restart Flame.
- For a virtual device, choose Devices → Virtual devices → Add. Search the model catalog, select a model, and follow the SDK and system-image setup checks.
- For a physical phone, enable developer options and USB debugging, connect it, and accept the computer's debugging authorization on the phone.
- Refresh devices, select the target, and wait for its preview. A device that is still booting is not ready for app interaction.
Set up an iOS simulator
iOS simulator discovery and live preview require macOS and Xcode.
- Install Xcode, select its command-line tools, and install an iOS simulator runtime.
- Choose Devices, then select an iOS virtual device or open Add for simulator setup.
- Start or use the simulator. Flame connects to the selected simulator without requiring a separate Simulator window.
Run your app and inspect output
Keep your SDK, project dependencies, and signing configured on the host.
- Open the app's project and select a device. In Mobile options → App, use Run for a supported detected framework.
- For Flutter, use the run and hot reload controls. The status bar device picker also exposes a running preview under Mobile Preview.
- Expo and React Native use their CLI commands. Native Android uses Gradle installDebug by default; open the installed app on the device afterward.
- For native iOS or a custom launch recipe, run your project-specific command in an integrated terminal. Inspect the project terminal and device logs when a launch fails.
Bring the device into AI chat
A screenshot gives the agent a concrete view of the problem.
- Select an online device and click Ask AI. Choose Take screenshot and ask to capture a fresh image, with recent device logs if useful.
- Alternatively, choose Add context → Add mobile preview in the chat composer, then select the device and attachments.
- Review the staged image, logs, and question, then send. Opening the chat alone does not send a prompt or interact with the device.
Disconnect or shut down
End a preview session or stop the virtual device when you are finished.
- Choose Mobile options → Device → Disconnect device to stop preview streaming and clear the selected device. The app and device keep running.
- Choose Shut down emulator or Shut down simulator to stop a virtual device as well.
- Use the separate app Stop action to end the project run. Select a device again whenever you want to reconnect.