I have created a remote service that takes care of all client-server communication. I have used service because there are few separated applications that will use the same communication socket and there is no other way to "share" socket between applications (as far as i know).
The service works great, can start a socket connection, send and get primitive objects (as int, String, etc...) and works great while sharing same socket between my applications.
As for now, all great and all works fine. The problem starts with different object types. I couldn't figure out to to make my service support passing "Object" through the socket. I've seen a solution that make no sense - using parcels. for example.
In this case, I'll need to create .AIDL file for any object type that I wish my service to support.
Isn't there any way just to use an "Object" type with my service? Any other idea for overcome my obstacle?
Thanks, Lioz.