I need to develop an application on Android platform that enables a client to communicate/request a command to the server and enables the server to response to the client’s request.
I read about Netty and I want to implement it to my project but I’m new to socket programming, it was written in Java, so implementing it to Android is not that hard, I guess. I’m looking for examples online but I’m lost in finding a good example for Android.
Can someone here can give me example/s to start with or tell me how can I achieve those features to my application?
Netty supports both NIO and OIO, but Android has broken support for NIO, so you can only use the OIO (blocking I/O) transport. Also, SSLEngine in Android is also broken, which mean, you can’t implement SSL with Netty on Android. (or possible probably using an alternative socket factory?)
Therefore, I would not recommend using Netty for Android devices although it’s also true that many people seems to use Netty on Android successfully somehow.