Hi,
I’ve got a Corona Enterprise App which has a web view. I have to display a menu made in Corona over this web view. Since this is not possible using Pro nor Enterprise, I wanted to use Corona Cards.
I’ve started with Android.
Unfortunately, when I try to open up a new Corona Cards instance, it always displays the same content as Corona Enterprise. It’s like the Corona View would not read the main.lua file from assets, bur rather use the CAR file OR like it would not create new Corona View but would reuse the old one.
Anyway, I can see that new Corona instance is created, the main.lua file is processed, however it’s not the one I would like
I’m attaching a sample, sorry for the little mess in code, I’ve tried to cleanup after plenty of experiments I have made.
What this example does is:
-
Load Corona Enterprise with a single rect/button, when you tap on it it will…
-
Display Native Web View with a test.html, which has a single button on it, which triggers a Java method which in turn should…
-
Display Corona Cards panel
Unfortunately, instead of displaying the buttons I have defined in assets/test/main.lua, it displays the same as created in the corona enterprise.
It seems to me the only thing you need to do to run this thing is to;
-
copy all of the libs from Corona Cards android to App/android/libs.
-
copy your corona cards license key to App/android/assets/test/
-
adjust local.properties to point to your android SDK dir
File:
https://www.dropbox.com/s/pumuxfpn58754y1/EnterpriseCards_POC.zip?dl=0
I will be grateful for any tips, this one is extremely important to me,and before someone asks… no, I’m not migrating the project to Corona Cards, I only want to use Cards for this simple popover panel.