How to connect to AVD

后端 未结 2 2020
梦毁少年i
梦毁少年i 2021-01-12 18:59

i\'m trying to write my own android http server. It\'s quite OK but i have a problem with my AVD. I don\'t want to download my app to phone everytime I want to test changes.

2条回答
  •  Happy的楠姐
    2021-01-12 19:22

    Telnet into the device (assuming it is on port 5554):

    telnet localhost 5554

    At the Android console prompt use a redirect:

    redir add tcp:8080:8080

    Pointing your browser to 'http://127.0.0.1:8080/' should now send, and receive to the AVD.

    Courtesy of: http://www.rhill.co.uk/?p=35

提交回复
热议问题