[android-developers] Re: Serializable subclass of non-serializable class

2011-10-05 Thread Jean-Michel
No, I am serialising to disk. Do you think it could work out? Any idea how to use Parcelable ? Many thanks, Jean-Michel On 5 oct, 16:43, Daniel Drozdzewski wrote: > Now luckily for you, Location in Android implements Parcelable > interface, which could be of help, depending where are you send

[android-developers] Re: Serializable subclass of non-serializable class

2011-10-05 Thread Jean-Michel
Daniel, sorry to be a pain in the bum, but there are still 2 things I cannot figure out. First I am not sure what you mean by DTO, but from what I understand it is basicaly a place holder for the data in my non-serilizable class. I understand how to transfer dta (the one I care about) between Loca

[android-developers] Re: Serializable subclass of non-serializable class

2011-10-07 Thread Lew
'Serializable' is ill-suited for persistence to disk. 'Parcelable' isn't much better. They're intended for in-process or inter-process transfers of data, not persistence. Don't use them. 'Serializable', in particular, imposes a huge maintenance burden, in that it locks down implementation

Re: [android-developers] Re: Serializable subclass of non-serializable class

2011-10-05 Thread Daniel Drozdzewski
On 5 October 2011 16:20, Jean-Michel wrote: > No, I am serialising to disk. > > Do you think it could work out? > > Any idea how to use Parcelable ? > > Many thanks, > Jean-Michel Jean-Michel, Parcelable is used for inter-process communication and is designed specifically for that (i.e. passing

Re: [android-developers] Re: Serializable subclass of non-serializable class

2011-10-06 Thread Daniel Drozdzewski
JM, sorry I missed your reply among 100s of emails yesterday... On 5 October 2011 17:18, Jean-Michel wrote: > Daniel, sorry to be a pain in the bum, but there are still 2 things I > cannot figure out. > > First I am not sure what you mean by DTO, but from what I understand > it is basicaly a pla