Reputation: 712
I'm currently trying to create an app that has to get some data from a mysql server.
I know, usually adding the Internet permission to the manifest fixes this problem.
However when I try to do this I get the following error (LogCat display):
> 03-05 20:01:41.604: D/ERROR(25938): java.sql.SQLException: Unable to
> connect to any hosts due to exception: java.net.SocketException:
> java.net.SocketException: Permission denied
Normally I would check my Manifest.xml and put the required code in, however my current manifest looks like:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.speelveldapp"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="17" />
<supports-screens
android:anyDensity="true"
android:smallScreens="true" />
<user-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
There must be something I've missed but I can't figure out what. So if anyone could give me a clue where to look that would be great!
Upvotes: 0
Views: 1765
Reputation: 180977
You have a typo;
<user-permission android:name="android.permission.INTERNET" />
should be
<uses-permission android:name="android.permission.INTERNET" />
Upvotes: 3