# Try your Android app with an agent

> Give your agent an Android device, let it install your app, tap through the screens and tell you what happened. You watch from the device's window.

You will end up with an agent that has installed your app on an Android device, gone through its screens and told you what it saw.

## The situation

You have an app file (an `.apk`) on your Mac and you want a second pair of eyes on the first run: does it open, do the screens make sense, does the button do anything.

## Ask your agent

Connect [Claude Code or Codex](https://castle.cx/docs/get-started/connect-your-agent.md) first. Then paste something like this:

> Use an Android device from Castle. Install my-app.apk from my Downloads folder and open it. Go through the first screens, tap what a new person would tap, and tell me what happens. Take a screenshot of anything that looks wrong. Give the device back when you are done.

Swap in the name and place of your own file.

## What the agent does

1. It asks Castle for an Android device. An Android device runs in the background.
2. It installs your app from the file on your Mac, and opens it.
3. It reads the screen, taps, types and scrolls, and takes a screenshot where something looks wrong.
4. It tells you what happened, then gives the device back with `done`.

Your agent can see the screen, take a screenshot, tap and fill in fields. It does this in the device, never on your Mac.

## What you see

Open the device's screen in a window from the list in Castle. You can watch the agent's pointer and use the phone yourself at the same time.

When you make an Android device yourself, you choose whether it comes with or without Google Play.

## Good to know

- **Pause.** An Android device can pause like the others. If an open app such as Chrome keeps the phone from saving, Castle closes that app, saves, and says which app it closed. If you press Pause with the phone's window open, it asks you first.
- **Your own Android phone.** Castle can also work with your own Android phone, by USB cable or Wi-Fi: your agent can see its screen, tap, type, open apps and run commands. Castle never starts, stops, pauses, resets or wipes your own phone.
- **Typing.** On Android, your agent types plain letters, digits and punctuation.

## Next

Make a throwaway copy before you test something risky: [Install something risky in a copy](https://castle.cx/docs/guides/install-something-risky-in-a-copy.md).

---
Section: Guides · Last updated: 2026-11-20 · Source: https://castle.cx/docs/guides/try-your-android-app-with-an-agent
