First, can your browser app on the emulator connect to the internet? If not, check your proxy settings, there are quite a few threads on the forum on setting emulator proxy. Next, did you add <uses-permission android:name="android.permission.INTERNET" /> tag to your app's AndroidManifest.xml? The new SDK requires that permission for network calls.
2008/9/3 Julien veneziano <[EMAIL PROTECTED]> > Hi all, > I tried to connect to a distant socket server and i've got this error > message : > > ERROR/OSNetworkSystem(458): unknown socket error -1 > > Since i just do : > > Socket conn = new Socket(my.distant.server.ip, my_distant_server_port); > > > I don't think the code is the problem (on top of that, it work when a > launch this command throught a java). Then I thought it would be an emulator > setting problem. I used this redir cmd but didn't work. If somebody know > about it... > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---