How to move data between 2 Android phones?
For the first question, where you did connect between two devices?
It's highly recommended you to build connection in Service as it can be run in background for long time. 
If you're connecting two devices simply in Activity then when it's being paused or destroyed, Your connection will be destroyed either.