hi all:
source code:
Socket m_Socket = new Socket();
InetSocketAddress sockAddress =
InetSocketAddress.createUnresolved("192.168.1.198",9010);
try {
m_Socket.connect(sockAddress,10*1000);
} catch (IOException e) {
// TODO Auto-generated catch block
CDebug.debugOutString("net connect
error:"+e.toString());
return -1;
}
m_Socket.connect() failed.catch error:UnknownHostException: Host is
unresolved: 192.168.1.198:9010
AndroidManifest.xml configurate <uses-permission
android:name="android.permission.INTERNET" />
<uses-permission
android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission
android:name="android.permission.READ_PHONE_STATE" />
use ad2.1
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en