Skip to content Skip to sidebar Skip to footer

Android: Socketexception Thrown When Attempting Httpurlconnection.getoutputstream()

this is my very first android program, it's a modified hello world. I'm running it on the emulator on a MAC. I attempt to communicate with a .NET web service but it gives an except

Solution 1:

Try to add the "internet" permission on your AndroidManifest.xml:

<uses-permission android:name="android.permission.INTERNET" />

Post a Comment for "Android: Socketexception Thrown When Attempting Httpurlconnection.getoutputstream()"