Add window and input management signals for Android
[libs/core.git] / source / core / android / main.cpp
index 86ed5bed84572e0029b0f2cf35fe668bac866586..2101563b3f1a91a4c5253670ec6623e6ec98c389 100644 (file)
@@ -2,5 +2,6 @@
 
 extern "C" void ANativeActivity_onCreate(ANativeActivity *activity, void * /*saved_state*/, size_t /*state_size*/)
 {
-       new Msp::Android::MainThread(activity);
+       Msp::Android::MainThread *thread = new Msp::Android::MainThread(activity);
+       thread->wait_for_app_created();
 }