By adding some logs it s look like SDLActivity.mSDLThread.join(); never ends.
So apps isn t really close and can t be bring to front by a service or can t be launch again.
if i comment this part in bootstraps/sdl2/build/src/main/java/org/libsdl/app/SDLActivity.java, the app is well destroyed :
// Now wait for the SDL thread to quit
if (SDLActivity.mSDLThread != null) {
try {
SDLActivity.mSDLThread.join();
} catch(Exception e) {
Log.v("SDL", "Problem stopping thread: " + e);
}
SDLActivity.mSDLThread = null;
Log.v("SDL", "Finished waiting for SDL thread");
}
By adding some logs it s look like SDLActivity.mSDLThread.join(); never ends.
So apps isn t really close and can t be bring to front by a service or can t be launch again.
if i comment this part in bootstraps/sdl2/build/src/main/java/org/libsdl/app/SDLActivity.java, the app is well destroyed :