Ive been searching google for a way to convert a bundle into a string suitable to store in a database as a BLOB type. I have found lots of examples of serializing it to a file but no mention of how to put it into a string or byte aray. Can anyone give me an example of how this is done?
I am developing an app that will use plugin’s for custom UI components and want to call a configuration activity in the plugin passing a bundle of configuration options that were stored in a database. The activity would return the bundle with the updated options and then I need to save it back to the database.
If anyone can point me in the right direction I would be grateful.
Your first step is to create a table to put this in. In this case something basic should do.
Then you will need a method for inserting the
Bundle, like this: