Android and Lua
- Android
- Lua
Lua: A lightweight language written in standard C that is small and fast to start. Lua has a concurrent JIT project that provides just-in-time compilation on a specific platform.
LuaJ: LuaJ is a Lua interpreter for Java, based on Lua 5.2.x.
- Java-based implementation that can integrate Lua virtual machines into Java applications
- Lightweight, high-performance implementation of Lua
- Multi-platform support
- Full library and tool support
- It can be executed in Java ME, SE, and EE environments
- Luajava API supports
- Mixed debugging
AndroLua: AndroLua is a tool for developing Android applications using Lua on the Android platform. It not only calls Java APIS, but also allows you to write Android interface applications and package Lua applications as apK installation files. The simplicity of Lua allows users with no programming experience to develop Android programs in a short time. (From Baidu Encyclopedia)
LuaViewSDK – Android version LuaViewSDK is developed and maintained by Alijuhuasuan.com wireless development team. LuaView is a kind of running in a ViewController/Activity, which can flexibly load Lua scripts. And can be in accordance with the Native way of a business-oriented development technology solution. It can quickly develop the page functions that require both experience and flexibility in e-commerce applications, such as home page, category home page, vertical channel, promotion event venue, etc. LuaViewSDK is also available for iOS.
LuaViewSDK experience
The official documentation put a very detailed introduction to the document 👉 beginners – Android
The following is a project created by myself. Load the echo. lua file in assets
I created a new local. Lua script file on the SD card and the contents are as follows
w,h = System.screenSize();
window.frame(0.0, w, h);
window.backgroundColor(0x220000);
label = Label();
label.frame(16.16,w, 60);
label.text("Local Hello World LuaView to Android");
Copy the code
We can load the lua script on the server page, pay attention to the verification of the server file, to prevent malicious attacks of Lua script.
Related articles
- Lua for mobile platforms