I have a fairly simple game that works perfectly on every version now up through 2.1, but with the new 2.2 (Froyo) release I am unable to create a socket. I am using the mi
Yes, You are right. I posted this problem to google groups and the comment was "the emulator doesn't support IPv6". Here is the link http://code.google.com/p/android/issues/detail?id=9431
Do you know why application should think it's device can support iPv6 or not? I think java application programmers don't need to know that.
this was a bug and has been fixed: http://code.google.com/p/android/issues/detail?id=9431
you should be very careful with the java.net.preferIPv6Addresses workaround, because there are devices and networks where you do want IPv6.
(and, as the original poster found, if you can use io rather than nio, you generally should.)
Thanks to Josh... I could get the andswer for this problem at the link above
using this code before opening a Selector
==> System.setProperty("java.net.preferIPv6Addresses", "false");
i can pass the problem...