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??
Asked
Active
Viewed 331 times
1
-
You can use an Android service to do this. – inclement Aug 09 '20 at 16:28
-
@inclement how to use android service can you tell me?? – Yash Mathur Aug 09 '20 at 16:36
1 Answers
2
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
- 161
- 6