Android - How To Store Address To Db
Looking to store android.location.Address to a SQLite database. I am using ORMLite to persist my objects. ORMLite can persist Serializable items (as a BLOB I believe) but I think t
Solution 1:
The answer from the user list was to define a companion object that will be stored to the database and do the translation to/from the android.location.Address
object by hand -- unfortunately. This will allow you to manager the storing of the various Address
fields to the database without worrying about forwards and backwards compatibility with other Android versions.
Here's the discussion on the ormlite-user mailing list.
Post a Comment for "Android - How To Store Address To Db"