简体   繁体   中英

connecting android emulator as a physical android device

I am using android studio and I am emulating a device and I need is for the emulated device to e shown on my computer as if it was connected physically... there is an on my pc I need to see my emulator as USB android so when it works I can use it on my actual device.

I'm not sure if I got your question right...

but if you want to connect your physical phone to run your application you need to make these steps.

First thing first you have to activate android developer mode on your phone, to do that go to your phone settings click on 'about phone', tap on "software information" and then scroll down to 'build number' and tap it 7 times. after you'll see a popup message saying that you activated developer mode. (here is a link in case you didn't understand https://www.samsung.com/uk/support/mobile-devices/how-do-i-turn-on-the-developer-options-menu-on-my-samsung-galaxy-device/ )

after that go back to main settings go scroll down to the bottom and there you will see "developer options" 开发者选项图片

tap on it and it will transfer you to the options then go to the wireless debugging无线调试图片

and turn it on and click it. after you clicked you will be transferred to this page无线调试选项

you can choose either one of them.

now in android studio在此处输入图像描述

Click the Pair device using wifi (you should be on the same network to use it) and choose what you would like to use在此处输入图像描述

and that's it... Unfourtonaly USB debugging doesn't work for me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM