Hi All,

I've got some classes which inherit from a single class, but differ
significantly in the data they store.

They get returned in a list of the parent class so there's a mix of
the two. Because there could be a
bunch of these in the results I'd like to cache them into an sqlite db
and have an adapter which pulls
data from there as the listview requires it.

Seeing as they're so different I can't just dump required info into
columns in a db (particularly given one type has a hashmap).

Is it possible to use bundle and parcels? The bundle forcing it to be
flattened? I couldn't see a way to dump a parcel to a string to push
it into sqlite.

This leaves me with just serializing objects and streaming it into a
string before I'm out of ideas.

Any suggestions on the most efficient way to deal with this? I'm also
not sure on the overhead of serializing and retrieving objects for the
db. I can see it quite possibly ripping through battery.

Cheers,

Alan.

--~--~---------~--~----~------------~-------~--~----~
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 unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to