I am programming an Android application as my final project. It connects to java web service in the cloud. My problem is that I want to use complex Java objects and share them between my Android application and my web service in the cloud.
As an example, I have a class “Mission”, and I want to use methods that introduce an argument of type “Mission” as a parameter or return a type of “Mission”. I want to use these complex objects just like String, Integer or Boolean.
Is it possible to create a library file or jar or something that contains these classes on the client side and server side?
What should I do to use these classes and complex Java objects between the server and client side, just like we use String or other regular Java types?
source
share