I started to develop in android with Android Studio IDE
, I tested my apps on the emulator
and works fine, but when I tried to test the apps directl
To test an android apps in a real device with Android Studio, You must keep two things in mind
Now , let me tell you how you can enable USB debugging on your android phone:
Now let me tell you how you can download the driver on your Windows PC:
For Android 7, Galaxy S6 Edge:
If Developer Options is not available then
Now perform step 1. Now it should work, if its still not working then perform these steps. It worked for me.
If USB Debugging Mode is enabled and does not work, you should install your device driver.
For Nexus Devices;
For Another Devices;
Hope it helps!
I can run on my device at last, just I enabled the "USB debugging" and "Allow mock location" options from the Debug Menu of my device.
I tried @Mr. Stark answer. It didn't work. It failed to install the drive. I have Samsung S8 plus. I enabled the debugging mode on device then installed Android USB Driver for Windows from Samsung site, it works.