Setting up a Physical Device for App Development

Hey folks, in this article you will be working on adding a physical device as a Emulator for running your Android apps on the got. Physical devices are used/preferred when the laptop or PC in which you are developing your app is not that powerful to run the IDE and the Emulator all together. To save some resources, and make the development process smooth, physical devices are used.

Getting Started

To get started, you will be needing three things:

  • An Android device. It can be either a phone or Tablet.
  • A USB data cable which will be used to connect the Android device and the laptop/PC in which you are developing.
  • (Optional) Installing the appropriate USB drivers for the device you are using. This is an optional thing as most of the USB drivers come pre-installed or are auto installed as a USB connection is made.

Once you have all the things mentioned above, connect the Andoid device with the laptop or PC. Once you have connected the device go to the setting and search for About phone, tap on About phone, and tap the build number seven times. This will enable the Developer option for you. Developer options has different options which provides you with some more controls over your mobile phone. Different devices have Developer options located at different place. You can try going back to the previous page(Settings/System) and see if Developer options is listed there. If it is, tap on it else find the Developer options and tap on it. After this find the USB debugging option and select it.

As we have already connected the Android device ith the laptop/PC through a USB cable you will see a dailog appearing on the Android device making to all USB debugging.

Select the Always allow option to remember this computer and tap on OK.

Now then you will open the IDE in which you are developing the IDE, it will show you with the device which you have connected as device for running your Android app in.

Most of the times, the physical device is selected by default as soon as you connect it but incase if it is not selected as a default device, you can select it and tap OK. After this, you can run your apps normally in the physical device and carry on with your Android development.

If you cmputer/PC still does not finds the device or declares it as “unauthorized”, you can follow the steps to troubleshoot this error.

  • Disconnect the USB cable.
  • In the Developer Options, tap the Revoke USB debugging authorizations.
  • Reconnect the device and then grant the authorizations when displayed with an option.

Where to Go From Here?

In this article you worked on adding your physical device as an emulaotr for running your android apps.

You can check out this video by me, where i have shown how you can add a physical device as an emulator.

If you have any questions or comments, please join the forum discussion below.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store