X-Git-Url: http://nitlanguage.org?ds=sidebyside diff --git a/lib/android/native_app_glue.nit b/lib/android/native_app_glue.nit index f83350e..1769e0c 100644 --- a/lib/android/native_app_glue.nit +++ b/lib/android/native_app_glue.nit @@ -37,7 +37,7 @@ # 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 @@ -56,7 +56,8 @@ in "C body" `{ // 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); } @@ -194,7 +195,7 @@ redef class App # 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