Cinder-ImGui on Android

I’m trying to build Cinder-ImGui on Android.

It seems to be working, but when I quit the application, it is still in the background, which is probably normal on Android. But when I start the app again it behaves strangely, the ui is no longer shown on the screen. If I ‘force quit’ the app everything works again for the first run, and no ui when restarting the app.

Any ideas or help would be appreciated.

-Gabor

As a workaround I made the app quit on lost focus.

#include "cinder/app/android/PlatformAndroid.h"
...
ci::android::setActivityLostFocusCallback( [ this ]() { quit(); } );

I would be curious to hear if someone knows a more proper solution. Thanks.