server.py is a simple server written in python that waits for the phone (client) to connect, recieves a message from the client, then sends one back. The .java file contains code for the app on the phone to send and recieve a message.
agernz/Android-Socket-Connection
Code to test sending and receiving data between a server and phone.
Java