Launch Intent From Lua With Java Binding

I am trying to do as the titles says.

I’ve been looking at the SimpleLuaExtension and tried to do the same.

I’ve just copied the onloaded method and the classes that goes with it.

but then if i try to call myTests… it says it’s not there.

I don’t call it from the main.lua file but from an other module.

Is there a prior setup required to make it work?

I’ve perhaps found what was the problem. kind of.

The CoronaApplication was simply not called.

I had the following copied from the sample:

<application name=“CoronaApplication” …

I had to change to 

<application android:name=“CoronaApplication” …

for it to work(?)

Also if you’re used to work within Eclipse on Mac, this is how I set it up:

  • Load your project

  • in the project properties > Android it links to ${CORONA_SDK} or something like that

but it was somewhat not in my path.

  • erase this library

  • import the library project in Applications/CoronaEnterprise/Corona/android/lib/Corona

  • make your project point to this library.

(setting the variable with the same name in your path to point to this folder is the best thing to do though)

I’ve perhaps found what was the problem. kind of.

The CoronaApplication was simply not called.

I had the following copied from the sample:

<application name=“CoronaApplication” …

I had to change to 

<application android:name=“CoronaApplication” …

for it to work(?)

Also if you’re used to work within Eclipse on Mac, this is how I set it up:

  • Load your project

  • in the project properties > Android it links to ${CORONA_SDK} or something like that

but it was somewhat not in my path.

  • erase this library

  • import the library project in Applications/CoronaEnterprise/Corona/android/lib/Corona

  • make your project point to this library.

(setting the variable with the same name in your path to point to this folder is the best thing to do though)