I'm new to socket programming, and I've been following several tutorials like this one http://www.myandroidsolutions.com/2012/07/20/android-tcp-connection-tutorial/ and was able to build a client-server architecture over TCP using socket.
The thing is, the tutorials are basic so they teaches you how to send using PrintWriter and BufferedReader which seems to write and read String. I have to encrypt my data and send it as byte[], so the question will be:
- For this mean, can I still use
PrintWriterandBufferedReader? if not then - What classes should I use for this means and how?, I have seen
DataOutputStreamandDataInputStreamand several others, but have not found their difference or why use one or another.
PS: The encryption part is already done, so don't worry about it as it is not the question :)