0

I am making an android app using kivy. I want my app should continue to run in background Even if I press minimize button of android. Is there any way to do so??

1 Answers1

1

If you mean minimize the app, add on_pause function to your App class:

class SomeApp(App):
    def build(self):
        return Label(text='hello')

    def on_pause(self):
        return True

    def on_resume(self):
        #do something after reopening app
        pass

But, if you mean creating background process or service that continue running even you close your app, try this.

omdo
  • 141
  • 6