#*"!!#*$%! It is that old App()-thing again!
I had the follwing code somewhere inside a constructor: data_dir = App().user_data_dir
That should be o.k. since the garbage collector will delete the temporarily created App-object, right?
NOOO! Somehow this overrides the 'real' App-object - the one that is derived from App and does everything.
Then, when android queries the on_pause() function it does not get the one I defined which returns 'true'. It gets the default one which returns 'false'. And that's the end of the app...
EVERYBODY (and me in the first place) should read the excellent analysis of marystern here:
https://github.com/kivy/kivy/issues/3584So, the correct code for getting the user directory is:
data_dir = App.get_running_app().user_data_dir
And beware even more:
On my Samsung I get the following directories:
App().user_data_dir --> /sdcard/
App.get_running_app().user_data_dir --> /sdcard/beadzdesigner
Another indication that App().something is very very wrong.