We want to call some functions before Super.OnDestroy() gets called by CoronaActivity. The current enterprise version gives us a very basic access to CoronaActivity life cycle. So can anyone suggest a solution.
You can do this by adding a CoronaRuntimeListener via the CoronaEnvironment.addRuntimeListener() method. This runtime listener provides an onExiting() method that gets called just before the activity is destroyed.
Have a look at our Java documentation below for more details…
http://docs.coronalabs.com/daily/native/android/html/com/ansca/corona/CoronaRuntimeListener.html
http://docs.coronalabs.com/daily/native/android/html/com/ansca/corona/CoronaEnvironment.html
You can do this by adding a CoronaRuntimeListener via the CoronaEnvironment.addRuntimeListener() method. This runtime listener provides an onExiting() method that gets called just before the activity is destroyed.
Have a look at our Java documentation below for more details…
http://docs.coronalabs.com/daily/native/android/html/com/ansca/corona/CoronaRuntimeListener.html
http://docs.coronalabs.com/daily/native/android/html/com/ansca/corona/CoronaEnvironment.html