I’m using the ad sample provided by corona and I’m wondering how I send data from lua to java? I have the following function inside lua
ads.init(key1, key2)
Then in my java code I have
public int init(LuaState L){ final String appId, appSignature; appId = L.toString(1); appSignature = L.toString(2); Log.e("Chartboost AppID:", "\_" + appId); Log.e("Chartboost AppSig:", "\_" + appSignature); //Set up vars cb = Chartboost.sharedChartboost(); cb.onCreate(CoronaEnvironment.getCoronaActivity(), appId, appSignature, null); return 0; }
The appId and the appSignature always returns null. Anyone have any ideas?