Reputation: 61
I am an Android beginner and I try to connect my ARCHOS 101 G9 to another device via TCP/IP
Wireless Lan. In the Activity of my project I have a function of a library called connectTCP.
So what I am doing is: connectTCP("175.145.1.105", 10003);
. 10003 is the port number of the host. There is a connection from the ARCHOS to the host with that ip address because I can ping the host from the ARCHOS. But in the main Activity of my project, when the function is called and probably the conection is established, the whole appliction stops immediately. This means that even the application window is closed. Additionally, the LogCat says "Zygote Process 5377 terminated by signal (11)". But there are no exceptions thrown. The only thing I modified in the AndroidManifest.xml was that I included <uses-permission android:name="android.permission.INTERNET" />
. So what could be the problem? Thanks in advance.
Upvotes: 0
Views: 270
Reputation: 83311
It could be because your not executing the TCP connection request on a separate Thread
. Read more about this here:
Upvotes: 2