Physical Emulator in Android Studio
How can you use your own Android phone as an emulator in Android Studio?
Firstly, you need to turn on the developer options in your cell phone.
On your Android phone, go to Settings -> Build Number (for Samsung Galaxy devices, it’s inside the software Information) -> tap on Build Number seven times to enable developer options.
Go back to Settings -> find Developer Options -> enable USB Debugging.
Sometimes, you need to update USB drivers on your computer. For Windows 10:
Connect your Android device to your computer's USB port.
From Windows Explorer, open Computer Management.
In the Computer Management left pane, select Device Manager.
In the Device Manager right pane, locate and expand Portable Devices or Other Devices, depending on which one you see.
Right-click the name of the device you connected, and then select Update Driver Software.
In the Hardware Update wizard, select Browse my computer for driver software and click Next.
Click Browse and then locate the USB driver folder. For example, the Google USB Driver is located in android_sdk\extras\google\usb_driver\.
Click Next to install the driver
For more information visit this site:
You need to install the drivers according to your device on your computer. For example, if you are Samsung user you need to install Samsung drivers.
Here is the link for the drivers of a Samsung users: https://www.samsung.com/us/support/downloads/
Android Studio will now detect your device when you run your application.
You will be able to select your physical device at the top of the emulation list.