Connecting to Android Emulator through VNC

爷,独闯天下 提交于 2019-12-03 04:38:32

问题


How can we connect to Android emulator through VNC with the help of noVNC using javascript? i would like to render the emulator on my browser.How can that be done.thanks


回答1:


You can start the emulator on the console with emulator -avd <the avd name> and add options for qemu with -qemu in your case -qemu -vnc :2 will start a VNC server listening at Port 5902. If you get an error, that your keymap was not found you can creating a symlink from android-sdks/tools/keymaps to the keymaps folder of your local qemu install.

Until now I couldn't find out, how to forward the mouse to the VNC server.




回答2:


You'll be probably better running a vnc server inside your emulator.

Install a vnc server on your emulator (Fastdroid is fine).

Now, you can start your emulator without window using

emulator -avd avd_name -no-window -qemu


来源:https://stackoverflow.com/questions/12847271/connecting-to-android-emulator-through-vnc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!