SocketException: Permission Denied?
Solution 1:
Add Internet permission to your manifest:
<uses-permission android:name="android.permission.INTERNET"/>
Solution 2:
You need to go to your Manifest file in your android application project then above application
section next to other permissions add: android.permission.INTERNET
Your manifest should look something like this:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="18" />
....
<uses-permission android:name="android.permission.INTERNET" />
...
<application
android:allowBackup="true"
....
keep in mind value (android.permission.INTERNET
) is case sensitive.
Hope this saves you some time.