It took sometime to me to understand why my connection class wasn't working anymore after the update to the new Android SDK 0.9.
Trying to open a simple socket I got the error "UknownHostException" even if my code wasn't changed.
The solution has been add to the AndroidManifest.xml this line:
Trying to open a simple socket I got the error "UknownHostException" even if my code wasn't changed.
The solution has been add to the AndroidManifest.xml this line:
<uses-permission xmlns:android="http://schemas.android.com/apk/res/android" android:name="android.permission.INTERNET"></uses-permission>
Magically the problem disappears.
Magically the problem disappears.
Nessun commento:
Posta un commento