Are widgets supposed to work in CoronaCards for Android?
I tried to include a simple widget:
local testWidget = widget.newSwitch( { left=50, top=cursorY, style=“checkbox” })
And I got:
11-17 16:50:17.396: E/AndroidRuntime(13560): FATAL EXCEPTION: GLThread 30656
11-17 16:50:17.396: E/AndroidRuntime(13560): com.naef.jnlua.LuaRuntimeException: /Users/jenkins/slaveroot/workspace/CoronaCards/OS/android/subrepos/widget/widgetLibrary/widget_switch.lua:64: attempt to index local ‘viewOff’ (a nil value)
11-17 16:50:17.396: E/AndroidRuntime(13560): at com.naef.jnlua.LuaState.lua_pcall(Native Method)
11-17 16:50:17.396: E/AndroidRuntime(13560): at com.naef.jnlua.LuaState.call(Unknown Source)
11-17 16:50:17.396: E/AndroidRuntime(13560): at com.ansca.corona.CoronaLua.dispatchRuntimeEvent(CoronaLua.java:293)
11-17 16:50:17.396: E/AndroidRuntime(13560): at com.ansca.corona.CoronaView$2.executeUsing(CoronaView.java:236)
11-17 16:50:17.396: E/AndroidRuntime(13560): at com.ansca.corona.CoronaRuntimeTaskDispatcher$TaskEvent.Send(CoronaRuntimeTaskDispatcher.java:148)
11-17 16:50:17.396: E/AndroidRuntime(13560): at com.ansca.corona.events.EventManager.sendEvents(EventManager.java:87)
11-17 16:50:17.396: E/AndroidRuntime(13560): at com.ansca.corona.Controller.updateRuntimeState(Controller.java:281)
11-17 16:50:17.396: E/AndroidRuntime(13560): at com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onDrawFrame(CoronaGLSurfaceView.java:417)
11-17 16:50:17.396: E/AndroidRuntime(13560): at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1622)
11-17 16:50:17.396: E/AndroidRuntime(13560): at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1377)