[android-developers] Re: Possible to deserialize java object on Android?

2011-02-20 Thread DanH
Sun worked hard to make serialization efficient -- not easy since it's so intensely dependent on reflections, but they succeeded fairly well. I suspect that Android hasn't invested nearly as much in making reflections efficient. On Feb 20, 1:26 am, Bob Kerns r...@acm.org wrote: Actually, while

Re: [android-developers] Re: Possible to deserialize java object on Android?

2011-02-19 Thread Bob Kerns
Actually, while I don't disagree with the advice Mark gave, he's not correct about what Java serialization is designed for, nor is there any issue of byte-code compatibility here, because Java serialization does not have anything whatsoever to do with byte codes. The Java serialization

[android-developers] Re: Possible to deserialize java object on Android?

2011-02-18 Thread Streets Of Boston
Is HTTP REST a better option for communication between my android client and server? Yes, much better option. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

Re: [android-developers] Re: Possible to deserialize java object on Android?

2011-02-18 Thread john doe
Hi Thanks for the reply. However, what about this part of my question: *Will the android client* *be able to demarshall the object? The reason I ask is that someone informed me that android* *does not use the java virtual machine and so and isn't byte-code compatible at all.* Thanks indeed. On

Re: [android-developers] Re: Possible to deserialize java object on Android?

2011-02-18 Thread Streets Of Boston
The answer is; not necessarily. It is best described here: http://stackoverflow.com/questions/2917847/serialization-performance-and-google-android In other words: Don't serialize. Another reason is that it's relatively slow on Android. Use the Parcelable interface instead. -- You received

[android-developers] Re: Possible to deserialize java object on Android?

2011-02-18 Thread Indicator Veritatis
OTOH, I have to agree, that avoiding serialization as described in your link is best. But if you really do need serialization, if you really cannot get buy with Mark's idea of using the SQL database instead, if even the Parcelable interface is not good enough for you, then instead of using XML,

[android-developers] Re: Possible to deserialize java object on Android?

2011-02-18 Thread Indicator Veritatis
But how can it be an 'option' for communication. REST is only an architecture, not a complete communications solution. REST alone cannot solve a communications problem. On Feb 18, 5:43 am, Streets Of Boston flyingdutc...@gmail.com wrote: Is HTTP REST a better option for communication between my