I have a libgdx project (Android) where I use a sqlite database. I'm developing the same project in iOS version (robovm) and I can't find anything about sqlite or database for iOS version.
Is it possible to use the same sqlite database ?
Thanks.
I have a libgdx project (Android) where I use a sqlite database. I'm developing the same project in iOS version (robovm) and I can't find anything about sqlite or database for iOS version.
Is it possible to use the same sqlite database ?
Thanks.
I know this is an old thread but this worked for me
You dont have to do it EXACTLY like this of course, but this is how i did it
First i made a helper class for SQLite called.. SQLiteHelper This would initialize things
Then each database extends this class For example, i have a database of Messages
I make a SQLiteMessages class which extends my Helper class i made
Then in the constructor i make the table
Then when i can add and delete and update as normal in SQL
Obviously you need to have a Message object but thats not really related to question
To retrive data simply:
No external libraries are needed for this Remember to add this to your robovm.xml
There no docs (at least I am aware of) on how to use SQLite on RoboVM. Following links can be useful though: