Skip to content

on_stop not called on Android #1226

@brvier

Description

@brvier

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");
          }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions