嗨,我是android的新手。我需要知道如何在android emulator中接收udp数据。数据来自PC(UDP SERVER正在PC上运行)。我正在使用Eclipse IDE。任何人都可以指导我解决这个问题?
You will need to set up redirects since the emulator sits behind a virtual router.
Start the emulator, connect to it via telnet, then give it routing commands;
telnet localhost 5554
redir add udp:<host-port>:<guest-port>
You will need to this each time you restart the eumlator, so it might be worthwhile to script it.
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.