Connect your Physical Device with Android Studio

Mujahid Khosa
2 min readOct 12, 2022

--

Enable USB debugging

To let Android Studio communicate with your Android device, you must enable USB debugging in the Developer options settings of the device.

To show developer options and enable USB debugging:

  1. On your Android device, tap Settings > About phone.
  2. Tap Build number seven times.
  3. If prompted, enter your device password or pin. You know you succeeded when you see a You are now a developer! message.
  4. Return to Settings and then tap System > Developer options.
  5. If you don’t see Developer options, tap Advanced options.
  6. Tap Developer options and then tap the USB debugging toggle to turn it on.
Tap the developer option and turn on USB debugging

Install the Google USB Driver (Windows only)

If you installed Android Studio on Windows, you must install a USB device driver before you can run your app on a physical device.

  1. In Android Studio, click Tools > SDK Manager. The Preferences > Appearance & Behavior System Settings > Android SDK dialog opens.
  2. Click the SDK Tools tab.
  3. Select Google USB Driver and then click OK.
install google USB driver

Run your app on the Android device with a cable

  1. Connect your Android device to your computer with a USB cable. A dialog should appear on your device, which asks you to allow USB debugging.
  1. Connect your Android device to your computer with a USB cable. A dialog should appear on your device, which asks you to allow USB debugging.
  2. Select the Always allow from this computer checkbox and then tap OK.
  3. In Android Studio on your computer, make sure your device is selected in the dropdown
  4. Select your device and then click OK. Android Studio installs the app on your device and runs it.
  5. If your device runs an Android platform that isn’t installed in Android Studio and you see a message that asks whether you want to install the needed platform, click Install > Continue > Finish. Android Studio installs the app on your device and runs it.

--

--

Mujahid Khosa

I am Mujahid Khosa, I am Developer & Marketing Manager at Best Ways Medical Service UAE