Quick answer: To run your app on a real phone instead of the emulator: enable Developer Options (Settings → About phone → tap Build Number 7 times), turn on USB Debugging inside the new Developer Options menu, connect the phone with a cable, accept the debugging prompt on the phone, and pick your device in Android Studio’s Run dropdown. Real-device testing is faster than the emulator and shows true performance. This guide covers the steps plus the two connection problems everyone hits.
The five steps
| Step | On the phone | Notes |
|---|---|---|
| 1. Unlock developer mode | Settings → About phone → tap Build Number ×7 | Toast: “You are now a developer!” (Samsung: About phone → Software information) |
| 2. Enable USB debugging | Settings → System → Developer options → USB debugging ON | The menu appears above About after step 1 |
| 3. Connect | Cable to PC; set USB mode to “File transfer” if needed | Some cables are charge-only — if nothing happens, try another cable |
| 4. Trust the computer | Accept “Allow USB debugging?” prompt (check Always allow) | Prompt appears when Android Studio first connects |
| 5. Run | — | In Android Studio: your phone appears in the device dropdown → Run ▶ |
When the phone does not appear in Android Studio
- The driver problem (Windows): most phones need their maker’s USB driver — install the one for your brand (Samsung/小米/Oppo all publish them), then replug.
- The cable problem: charge-only cables are everywhere. If File Transfer mode is not offered when connected, the cable is the culprit.
- Verify the connection: Device Manager (Windows) should show your phone under ADB devices; or run
adb devicesin Android Studio’s terminal — unauthorized means the phone prompt is unanswered. - Wireless (Android 11+): Developer options → Wireless debugging → pair with the code Android Studio offers under Pair Devices Using Wi-Fi — same run experience, no cable.
Why bother: emulator snapshots hide real-world truth — scroll performance, camera behavior, network blips. Testing on the actual hardware you own catches those on day one. First app not installed yet? Start with our first Android app guide.
For one-to-one Android training with real device workflows, Ampersand Academy teaches Android development with live code review.
Frequently asked questions
How do I enable USB debugging on Android?
Go to Settings, About phone, and tap Build Number seven times to unlock Developer Options. Then open System, Developer options, and enable USB debugging.
Why is my phone not showing in Android Studio?
Usually the cable (charge-only), a missing manufacturer USB driver on Windows, or an unanswered Allow USB debugging prompt on the phone. Test with another cable first, then install the brand driver.
Is USB debugging safe to leave on?
It is fine during development on your own computer. Turn it off for daily use – especially on public chargers – because a debugging-authorized phone exposes data to trusted computers.
Can I run Android Studio apps over Wi-Fi?
Yes on Android 11 and newer: enable Wireless debugging in Developer options, then use Pair Devices Using Wi-Fi in Android Studio’s device manager with the pairing code from your phone.
Does a real device run apps faster than the emulator?
Usually yes on mid-range and newer phones, and it shows honest performance, sensors, camera and network behavior. The emulator is still handy for testing different screen sizes and Android versions.

