I’m trialing Corona Enterprise now, hoping that it can save me development time for my app. I currently have an Android app that does the following tasks:
live video processing from device camera and saving the video
managing the saved videos in a library and playing them back.
Task (1) involves some heavy data crunching and must be done in Android, while task (2) mainly involves UI and can be done in LUA.
I have gone through all the enterprise samples and I manage to compile all of them, but for 2 weeks I still couldn’t get off the ground in making Corona work for me. I think Corona will be perfect for my app but I really need some help. Can you help me please?
live video processing from device camera and saving the video
managing the saved videos in a library and playing them back.
I want to replace (2) with Corona Lua code, and re-use (1) which involves a lot of heavy duty video processing. I have already gone through and compiled all the sample codes in Enterprise version but I still don’t know how to get started. Can you help?
You would want to integrate your (1) code to one of the sample enterprise projects. Then you would want to hook it up so that you can call those functions from the lua side. You can see an example of calling some native functions in the SimpleLuaExtension sample project.
Hi, my android project was developed in Eclipse. It is quite different from the “app” template provided in the Enterprise version. Can you provide a step-by-step guide on how to do the integration? Particularly:
what modifications are required on the original Eclipse-Android project?
how to call the Eclipse-Android code from say, “main.lua”?
As I mentioned, I managed to compile all the Enterprise sample codes. Just don’t know how to do these 2 steps.
One more specific question (following the last thread):
how can Corona start a new Android Activity - this is assuming we start off with a Corona menu which can load different Android activities. This is the opposite of the sample code “Launch from Native UI”, which start of with Android menu and call different Corona functions.
How to port your code depends on how your code is structured. If it was all in one class file you could just copy that over. If it was integrated into the activity then you’ll have to decouple it from the activity. You code could be structured in some other format.
In the SimpleLuaExtension sample code, it calls “myTests.printTable(collection)” which is a java function. You can use that project as an example. The quick over view is that you have to register(CoronaApplication.java line 38) a java class(PrintTableLuaFunction.java) which implements the com.naef.jnlua.NamedJavaFunction interface.
If you want a more indepth sample then http://www.coronalabs.com/products/support-training/. Basically you need to get an instance of the CoronaActivity and then call CoronaActivity’s startActivity method with the intent that will start your activity.
live video processing from device camera and saving the video
managing the saved videos in a library and playing them back.
I want to replace (2) with Corona Lua code, and re-use (1) which involves a lot of heavy duty video processing. I have already gone through and compiled all the sample codes in Enterprise version but I still don’t know how to get started. Can you help?
You would want to integrate your (1) code to one of the sample enterprise projects. Then you would want to hook it up so that you can call those functions from the lua side. You can see an example of calling some native functions in the SimpleLuaExtension sample project.
Hi, my android project was developed in Eclipse. It is quite different from the “app” template provided in the Enterprise version. Can you provide a step-by-step guide on how to do the integration? Particularly:
what modifications are required on the original Eclipse-Android project?
how to call the Eclipse-Android code from say, “main.lua”?
As I mentioned, I managed to compile all the Enterprise sample codes. Just don’t know how to do these 2 steps.
One more specific question (following the last thread):
how can Corona start a new Android Activity - this is assuming we start off with a Corona menu which can load different Android activities. This is the opposite of the sample code “Launch from Native UI”, which start of with Android menu and call different Corona functions.
How to port your code depends on how your code is structured. If it was all in one class file you could just copy that over. If it was integrated into the activity then you’ll have to decouple it from the activity. You code could be structured in some other format.
In the SimpleLuaExtension sample code, it calls “myTests.printTable(collection)” which is a java function. You can use that project as an example. The quick over view is that you have to register(CoronaApplication.java line 38) a java class(PrintTableLuaFunction.java) which implements the com.naef.jnlua.NamedJavaFunction interface.
If you want a more indepth sample then http://www.coronalabs.com/products/support-training/. Basically you need to get an instance of the CoronaActivity and then call CoronaActivity’s startActivity method with the intent that will start your activity.