Handling app suspend/resume on Android in Kivy

android, kivy, python

Solution

I have never used Kivy or developed for android, but I was able to find:

This

From the link:

If you just want your app to not be closed completely (so that it doesn't restart entirely with the splash screen etc. every time), you just have to add an on_pause method to your App class, and it should return True. You can also do any pre-pause stuff in this method. However, the app doesn't really keep running, it just keeps memory state.

If you want it to do computations in the background you can use Python-for-android.

Problem

I started developing an app with Kivy for Android and managed to build and run an APK today. Couldn't find a straight answer on how to handle my app being suspended and resumed by a user without going through the initialization/loading screen? Is there a special mechanism that will handle this? It is rather annoying that every time I send the app to the background and bring focus back to it there is that loading screen popping up.

Original source

Related problems