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.
我从未使用过Kivy或为android开发过,但我发现:
This
从链接:
如果你想让它在后台进行计算,你可以使用pythonforandroid。在
Kivy有一个^{} 和^{} 方法,可以用来处理这些事件。这些是为您自动调用的主
App
类的方法。在相关问题 更多 >
编程相关推荐