I have a very complicated issue, but if I can do this, then I will basically solve it in a blow.
Basically, I’m creating an application that at first will run in both iOS and Android, and later possibly for Blackberry and Windows Phone. The problem is, that I will use Dropbox to keep all these devices in sync. The data I need to persist needs to be stored in a SQLite database (ideally, since I can’t use Core Data in all the devices and XML is hard to work with in all platforms). I will create a custom object (in C++, or a struct, or anything I need to create as long as I can make this work in all platforms), and I want to be able to store the raw C++ object in the database and later read it’s data in Android (and Blackberry and WP later).
So basically, my question is, can I store raw C++ objects in a SQLite database? And therefore be able to read them on Android and Windows Phone? It sounds like a silly question since Android programming is done in Java and WP is done in C#, and that’s what makes me doubt whether my C++ objects could be read from the database with little to no problems.
My guess is that it could be something like dumping binary data -an struct for i.e.- and the answer is yes (blob datatype).
Anyway, if I were doing something like that, I’d store encoded json in a text db field, for the sake of simplicity and portability. Keep in mind that this choice depends on many facts, for example how often the db will be accessed to retrieve/save these objects, or how big are the objects going to be, etc etc.
Hope this helps