Fixed project build, and separated DataTransmit from the MainActivity