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.
Did you like the article? Buy me a coffee!
postato da: emanuelepec alle ore 17:00 | Permalink | commenti
categoria:bug , google, tipsandtricks, android
categoria:bug , google, tipsandtricks, android




Testing phase is always a difficult task for J2ME (but in general for all mobile environments). A lot of variables have impact in the result of a test session (different network, phone models, version of software, etc.).
The LWUIT project is now Opens Source as announced in the
HTC has confirmed that their first Android phone will be on the market on the 4th quarter of 2008 denying the rumors which claimed a possible delay to first quarter of 2009. No more details came from HTC.