开发者

Using TFTP in Android, Works fine out of android, Hangs on sendFile in android

It all compiles fine and works like a charm, H开发者_如何转开发owever when i set it up in Android it still compiles fine but when gets to tftp.sendFile it just sits there. I've checked the packets with Wireshark and nothing is being sent.

http://www.java2s.com/Code/Java/Network-Protocol/AsimpleJavatftpclient.htm

What could be the issue here? Spent a few hours debugging and nailed it down to that tftp.sendFile

--

If i let it run for the 60 seconds it just times out with the following

WARN/System.err(2227): Error: I/O exception occurred while sending file. WARN/System.err(2227): Connection timed out.

So its loading the methods fine

EDIT: And i've got "android.permission.INTERNET" in my manifest file.


Well, I worked it out, emulator seems to block it, but it works fine on the device.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜