To those who are using Corona Enterprise for Android, anyone tried creating Android widget for your app? Is is even possible?
Thanks in advance.
To those who are using Corona Enterprise for Android, anyone tried creating Android widget for your app? Is is even possible?
Thanks in advance.
I think that to create a widget you have to go fully java. Of course, you can make it a part of your app using Enterprise, but the implementation itself would have to be in native code.
Have a look at Corona Enterprise sample app “ExtendingUI”. It shows you how to add Android’s native UI on top of Corona. In that particular app, it shows a button bar at the bottom which control the background color rendered in the Corona view. That code is pretty well commented and shows you how to add the Java widgets to the CoronaActivity’s overlay view, how to set up a listener with the Android Java button, and then have the Java button handler invoke a function in Lua.
I think that to create a widget you have to go fully java. Of course, you can make it a part of your app using Enterprise, but the implementation itself would have to be in native code.
Have a look at Corona Enterprise sample app “ExtendingUI”. It shows you how to add Android’s native UI on top of Corona. In that particular app, it shows a button bar at the bottom which control the background color rendered in the Corona view. That code is pretty well commented and shows you how to add the Java widgets to the CoronaActivity’s overlay view, how to set up a listener with the Android Java button, and then have the Java button handler invoke a function in Lua.