Set Up Device For Development

Estimated reading: 5 minutes 397 views

This article will discuss how to setup an Android device and connect it to a computer so that the device may be used to run and debug Xamarin.Android applications.
By now, you’ve probably seen your great new application running on the Android emulator, and want to see it running on your shiny Android device. Here are the steps involved with connecting a device to a computer for debugging:

  1. Enable Debugging on the Device – By default, it will not be possible to debug applications on an Android device.
  2. Install USB Drivers – This step is not necessary for OS X computers. Windows computers may require the installation of USB drivers.
  3. Connect the Device to the Computer – The final step involves connecting the device to the computer by either USB or WiFi.

Enable Debugging on the Device

Enable USB Debugging mode on Android 12L, 11, 10, Pie, Oreo, Nougat, Marshmallow, or any version using our easy steps guide. Enable developer options and USB debugging from a PC using this simple tutorial. USB Debugging (also called Developer mode or Android debug mode) is used for the connection between an Android device and your computer using Android SDK.

You can easily turn on the Developer options or the USB debugging on any Android smartphone including Samsung Galaxy phones, Google Pixel, Sony, Motorola, Xiaomi Redmi, Huawei, One Plus, Oppo, Vivo, HTC, Honor, Kindle fire, Asus, LG, Lenovo, Micromax and many more.

Using ADB command prompt window or a few tricks, you can turn on the USB debugging mode on broken screen phone, hard bricked phone, dead phone, FRP locked phone, password locked, black screen phone, boot-loop phone, etc. In this guide, we’ll discuss the step-by-step procedure on how to enable USB debugging mode on any Android smartphone and tablet.

Android 9/10/11/12

USB debugging mode is available under the Developer options. But from Android 9 Pie, the developer options are hidden. So firstly you need to unlock it to access the debugging mode.

  • Open the apps panel on your phone and launch the Settings app.
  • On the next screen, scroll down to the bottom and open the System.
  • In System, open the About Phone section.
  • Under the About Phone section, look for the Build number.
  • Just tap on Build number 7 times. It’ll show you a countdown message saying, “You’re 4,3,2,1 steps away from being a Developer”.
  • Tap on the Build number until it shows a message saying, ” You are now a developer”.
  • As soon as you receive this message, the Developer options will get unlocked in your About Phone section.
  • So go back to the About phone section, and click on the Advanced option.
  • The advanced options will not be available on some phones, so those phones directly go to the next step.
  • Look for the Developer options and open them.
  • Under Developer options, you can find and enable USB debugging mode.

Install USB Drivers

This step is not necessary for OS X. Just connect the device to the Mac with a USB cable.
It may be necessary to install some extra drivers before a Windows computer will recognize an Android device connected by USB.

Info

These are the steps to set up a Google Nexus device and are provided as a reference. Steps for your specific device may vary but will follow a similar pattern. Search the internet for your device if you have trouble.

Download the USB Drivers

Google Nexus devices (with the exception of the Galaxy Nexus) require the Google USB Driver. The driver for the Galaxy Nexus is distributed by Samsung.

All other Android devices should use the USB driver from their respective manufacturer.
Install the Google USB Driver package by starting the Android SDK Manager, and expanding the Extras folder, as can be seen in the following screenshot:

Check the Google USB Driver box, and click the Install button.

Connect the Device to the Computer
The final step is to connect the device to the computer. There are two ways to do so:

  • USB cable – This is the easiest and most common way. Just plug the USB cable into the device and then into the computer.
  • WiFi – It is possible to connect an Android device to a computer without using a USB cable, over WiFi. This technique requires a bit more effort but could be useful when there is no USB cable or the device is too far away for a USB cable. Connecting via WiFi will be covered Here.

Now Your device will appear in the Debug section click start and the application will be deployed to your own device and you can start your own test.

Leave a Comment