Hi, I have a problem with Android code that works on Android SDK m5-
rc15 and m5-rc14, but doesn't works on Android 0.9 SDK beta.

It's about TCP sockets; I haven't read anything about changes on
java.net about this, but the problem exists.

When I try to open a simple socket connection:

        InetAddress destination=null;
        try
        {
                destination = InetAddress.getByName("192.168.1.33");  //put
your IP addres in your case
                Scoket s=new Socket(destination,5003); // here is the problem

         }
        catch (IOException e)
        {
            // TODO Auto-generated catch block
            e.printStackTrace();
         }


I obtain this error captured in "e" variable (e.getMessage()):
         unknown error


It's exactly the same code that works on older Android SDK
versions...

Does anyone have any idea about this problem? Have Android changed
java.net in this Socket constructor? Have emulator changed this
sockets redirection??? Any idea??

thanks!

VicX


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to