Android device acts as a server
<p>A briefly description of my problem. I need to build an app that can run initially in two android devices. One of the two devices needs to act as a server and when the other device detects it, they should send a message to each other. The communication can be done with WiFi or Bluetooth. So basically when they are in the same range they should communicate. The message needs to be sent one time only and it can be anything (text, time).</p>

<p>How will the communication of my app be affected if the devices are moving?</p>

<p>I really trust this site for solutions and this is the reason that i asked this question here.
It would be nice if anyone knows and provides me related articles.</p>

<p>Thanks. </p>
