I\'m developing an Android game in Java which uses Lua scripts. To execute these scripts, I\'m using LuaJ with Java\'s ScriptEngine class. For example...
ScriptE
Instead of LuaJ you can (also) use LuaJava together with Lua compiled for Android using the NDK. This allows Lua full access to whatever is available from Java. Take a look at this example to see how to get started.
Lua 5.1.4 + LuaJava compiled are provided in the libs
directory (a single libluajava.so
file) if you do not want to fiddle with the NDK, but it is relatively easy to set up anyway.