bmustata bmustata - 2 months ago 19
Android Question

Best communication strategy between Android client and .Net C# server

I was exploring various methods for implementing communication between a home made TCP/IP server and a Android client application.

Some ideas:
- TCP/IP Server bases on JSON
- Service with WCF library
- Some sort of REST server

What is the beast strategy and libraries to approach this problem?


For simple messaging, and status checks, any HTTP based solution would be a much better choice than coming up with your own TCP/IP protocol.

HTTP traffic is significantly less likely to be firewalled, so you will avoid a lot of accessibility and configuration problems.

Whether or not you should use REST, depends on the nature of your application. REST makes a lot of sense for CRUD applications, but make much less sense for other types of applications.