Does anyone have an example of how I can use SQLite in libGDX? I have a class in my original Android code that allowed me to easily access a database but I can't seem to find anything equivalent to that in libGDX. Or maybe I am missing something? Am I able to use that in the libGDX code somehow? Sorry I am new to libGDX.
If you have that, you can use (callbacks).
You define an interface, and implement the methods in the android classes, in that way you can retrieve data and get it in your libGdx project.
Its an easy way.
I used my class in libgdx as a singleton, because i dont need a lot of instances, and i secure that is always live.
If you want to use sqlite with libGdx you can use opensource project gdx-sqlite .
gdx-sqlite is a cross-platform Libgdx extension for SQLite database handling. The extension abstracts database handling to provide a unified method to handle database transacitons across multiple platforms while also adding SQLite support for desktop version of Libgdx application.