What is the best way for an Android app installed on two devices to communicate with each other? Can the devices connect directly without using text messaging?
As was already suggested, sockets are the easiest way to accomplish this if your devices are all connected to a network.
There are things to accomplish here:
For a complete tutorial you can check this out