miko wrote:Because major mobile platforms usually have support for this, and sqlite3 is natural fit for such requirements.
I wish desktop LÖVE version had support for sqlite also... That would be ideal solution.
Hey, why didn't I thought of it? I totally agree, this is an awesome feature. I will add it when time permits (desktop compatible only if Android can do it in C/C++).
Petunien wrote:When löving for android, it's possible to call any Android/Java-function outside the script?
We do not have a generic bridge from Lua to Java, but we need to do either Java->C/C++->Lua or Lua->C/C++->Java and code all the connections we want to have.
So we can use things like sqlite3?
Yes, but it requires some effort to implement. We can access all things in both Android levels, which are Java and C/C++.
Or are we bound to Lua and LÖVE?
If you do not want to modify the love-native-android code, yes. If you are fine with doing Java and/or C/C++, you can use any layer you want to.
In the sourcecode on github, I only saw C++ code and Lua inside the module-folders of LÖVE. Are you developing using C++?
I always thought you convert the LÖVE functions in their respective Android ones...?
Actually we do Java, C, C++, Lua, and XML as required. We do not reimplement Löve, but port it. This means that we took its C++ source code and fixed it to compile and run on Android. Since compiling works fine, we are looking for those parts that do not work and add Java calls as required or solve those issues directly in C++. Java is also used as Löve's skull.
Because of all those languages (and we have some bash scripts to simplify some compiling and debugging steps, too), it might be difficult to understand our code...