luaj
luaj copied to clipboard
May i override java function on luaj?
TimerTask task = new TimerTask() {
@Override
public void run() {
/**
* do somthing
*/
Log.d("task","Try Do");
}
};
May I do like java on lua? And how? just like:
local task= luajava.newInstance("java.util.TimerTask")
-- how override run function?
@pgw00k, you need luajava.createProxy. Look at the swing example. It has exactly the same use case with the Runnable implementation.
Thanks acanthite!