Provides a client-side TCP socket.
1. In the MainActivity.java file, add the below import to the imports section.
2. In the onCreate method, add the below line to declare a new Socket named mySocket.
Socket mySocket;
3. Compile and run!
Next Recommended Article: How to Initialize a Socket object
Resources: http://developer.android.com/reference/java/net/Socket.html
http://android-er.blogspot.com/2011/01/simple-communication-using.html
Next Recommended Article: How to Initialize a Socket object
Resources: http://developer.android.com/reference/java/net/Socket.html
http://android-er.blogspot.com/2011/01/simple-communication-using.html