Corona Enterprise get variable?

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?

Nevermind I’m an idiot. I was passing the correct variables into the lua function but inside I was using differnt variables when I pass them to java.  :wacko:

Try taking the “final” off of this:
 

final String appId, appSignature;

Adding the final keyword makes those read only.

Rob

Nevermind I’m an idiot. I was passing the correct variables into the lua function but inside I was using differnt variables when I pass them to java.  :wacko:

Try taking the “final” off of this:
 

final String appId, appSignature;

Adding the final keyword makes those read only.

Rob