# main activity of the running application. Use it to get anything related
# to the `Context` and as anchor to execute Java UI code.
module native_app_glue is
- ldflags "-landroid"
+ ldflags("-landroid", "-lnative_app_glue")
android_activity "android.app.NativeActivity"
end
// We relay the call to the Nit application.
void android_main(struct android_app* app) {
native_app_glue_data = app;
- app_dummy();
+
+ int main(int argc, char ** argv);
main(0, NULL);
}
# Notification from the Android framework, the system is running low on memory
#
# Try to reduce your memory use.
- fun low_memory do end
+ fun low_memory do force_garbage_collection
# Notification from the Android framework, the current device configuration has changed
fun config_changed do end