thank for your reply, i can connect to internet without anyproblem and without any proxy. when i set the android.permision.INTERNET, i've got those line in the log :
09-05 11:10:52.561: ERROR/AndroidRuntime(169): Uncaught handler: thread main exiting due to uncaught exception 09-05 11:10:52.561: ERROR/AndroidRuntime(169): *** EXCEPTION IN SYSTEM PROCESS. System will crash. 09-05 11:10:52.581: ERROR/AndroidRuntime(169): java.lang.SecurityException: Permission Denial: starting Intent { flags=0x10000000 comp={com.android.test.socket/ com.android.test.socket.socketTest} } from null (pid=-1, uid=-1) requires android.permission.INTERNET 09-05 11:10:52.581: ERROR/AndroidRuntime(169): at android.os.Parcel.readException(Parcel.java:1066) 09-05 11:10:52.581: ERROR/AndroidRuntime(169): at android.os.Parcel.readException(Parcel.java:1054) 09-05 11:10:52.581: ERROR/AndroidRuntime(169): at android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java: 961) 09-05 11:10:52.581: ERROR/AndroidRuntime(169): at com.android.commands.am.Am.runStart(Am.java:194) 09-05 11:10:52.581: ERROR/AndroidRuntime(169): at com.android.commands.am.Am.run(Am.java:73) 09-05 11:10:52.581: ERROR/AndroidRuntime(169): at com.android.commands.am.Am.main(Am.java:51) 09-05 11:10:52.581: ERROR/AndroidRuntime(169): at com.android.internal.os.RuntimeInit.finishInit(Native Method) 09-05 11:10:52.581: ERROR/AndroidRuntime(169): at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:184) 09-05 11:10:52.581: ERROR/AndroidRuntime(169): at dalvik.system.NativeStart.main(Native Method) 09-05 11:10:52.621: ERROR/JavaBinder(169): Unknown binder error code. 0xfffffff7 09-05 11:10:52.621: ERROR/AndroidRuntime(169): Crash logging skipped, no checkin service here is a copy of the AndroidManifest.xml : <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.android.test.socket"> <application android:icon="@drawable/icon" android:label="@string/ app_name" android:debuggable="false" android:permission="android.permission.INTERNET"> <activity android:name=".socketTest" android:label="@string/ app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest> On 4 sep, 05:38, "Megha Joshi" <[EMAIL PROTECTED]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---