Search code examples
javaandroidsamsung-mobile

How to set a running device with android studio?


I want to connect an android device to test my application directly from my environment android studio

android studio - http://developer.android.com/sdk/index.html

I have a samsung galaxy s5 device, I've connected it to usb, I've installed this drivers:

http://developer.samsung.com/technical-doc/view.do?v=T000000117

and there are said that:

The USB Driver for Windows is available for download in this page. You need the driver only if you are developing on Windows and want to connect a Samsung android device to your development environment over USB.

so, in my windows 7 device mananger I see that in the section "portable devices" the phone is listed, and its name is identified, but in the android studio when I run my application, then I should select if a want to run it with a virtual or real device, so in the list of running devices in android studio, my device is not listed, I 've tried to restart the pc, but no results, can anyone tell me what I'am doing wrong? I can't understand...


Solution

  • Before Android Studio, you have to setup Android SDK to your Windows and make ADB work everywhere. However, now life is a lot easier when you use Android Studio since everything includes in it, you just need to enable USB Debugging on your phone and Run.

    Follow this link: Run on a Real Device

    You still doesn't work, try to follow step by step on that page.