Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use SQLite with libgdx

Tags:

java

libgdx

I was wondering if anyone knows a good tutorial that explains how to use SQLite with libgdx. All the ones I have found don't explain it well and I'm having trouble figuring out how to use it. So if you know of one that explains everything decently please give me the link to it. Thanks in advance.

like image 742
nickqqqq1 Avatar asked Apr 28 '26 17:04

nickqqqq1


2 Answers

Notice that the extensions available won't work for multi-platform, at max you'll be able to support Android and Desktop. My advise is for you to create your own classes for methods for accessing info stored as files on the device trough the LibGDX File API. You won't get to use SQL and it will certainly take longer but you'll get try multi-platform support (if that is what you're looking too of course).

like image 160
pedronveloso Avatar answered May 02 '26 12:05

pedronveloso


https://code.google.com/p/libgdx-users/wiki/SQLite

Try this, although it is rather a suggestion of implementation rather than a full blown tutorial.

like image 34
Zerkz Avatar answered May 02 '26 13:05

Zerkz