Enabling USB Debugging - For the ANDROID Developer

12:48 PM


Many a time, when trying to enable USB Debugging, our devices may not actually get discovered whatever you try to do.

So here is how I was able to fix the issues I faced with USB Debugging.


How to enable USB Debugging option on your device

Follow these steps:

1. On your device, in the Developer options, enable "USB Debugging"




Where you actually find the "Developer Options" may differ from phone to phone (But definitely hiding somewhere in your Settings menu). The above is a screenshot from Galaxy Grand Duos Device. 

On newer phones with Android 4.2 , such as Samsung S4 device, etc, you might have to enable USB Debugging in a rather weird kind of way. This option is hidden by default. You will have to un-hide it

This is how you do it. 
    1. Go to Settings -> About Device 
 

2. Now, click on the "Build Number" seven times and you get a message saying "Developer options has been enabled
3. And now, your "Developer Options" has appeared back again


On Windows


Now for your device to get detected in order to run the app on it, you will need appropriate drivers. Sometimes, as you plug your device to the machine, the drivers automatically update themselves. But in other cases, you might have to manually do that and you may not always have the drivers. 

This is the driver I used for Galaxy Grand DUOS. This will also work for other phones. (But first make sure your device is connected to the machine through a USB cable)

https://www.dropbox.com/s/c5nv47vx8sxcz42/Samsung_USB_Driver_for_Mobile_Phones_v1.5.14.0.exe

If the above doesn't work, you can alternatively try this too. 

http://developer.samsung.com/android/tools-sdks/Samsung-Andorid-USB-Driver-for-Windows

On Mac

On MAC machines, you don't need a driver. Follow the link below and download this application. Run it once after connecting your device to your machine through a usb cable. 

http://www.android.com/filetransfer/

--------------------------------------------------------------------

Now let us inform our Android App project on our IDE (like Eclipse) that we would like to debug our app on a real device. 

1. Right click on your project and click on "Run as" and click on "Run Configurations"


2. Select the first option as you can see below. And click "Run"


3.  Now you can see your device that has connected to your machine. Click on it and then hit "OK". 
(You can tick the "Use same device for future launches, so this dialog will not appear all the time)


4. You are now ready to run the application on your device. You don't necessarily have to repeat step 1 every time you want to run your application. You can just click on the "Run" button on your toolbar. 

You Might Also Like

1 comments

  1. HI this is John Read, I have read your article it's quiet interesting & also informative. Your article is quite simple to understand...
    iphone app development services

    ReplyDelete