When an application (in the background) is closed because Android
needs to make space for other (foreground) application normally
onDestroy is called wich in phonegap triggers the unload event. In my
phonegap programs (PG 1.4.1) The unload event is not called and after
adding
@Override
public void onDestroy() {
Log.i("BikeFlux", "onDestroy, before super");
super.onDestroy();
}
to my activity showed that onDestroy is only called when the
application is properly closed and not when it is closed when it is in
the background.
http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle
(info about Android lifecycle)
Is this because an error in Phonegap (DroidGap) or is it something
else?
greets
Wilin