refactor Android UDP code