Tutorial sacado de: http://examples.javacodegeeks.com/android/core/socket-core/android-socket-example/