Skip to content

Any ideas let toga android run in backgroud? #1679

Answered by mhsmith
ThinkNaive asked this question in Q&A
Discussion options

You must be logged in to vote

You shold be able to use a wake lock, like this. Notes on converting the code to Python:

  • If self is your App object, then the Context on which to call getSystemService is self._impl.native.
  • POWER_SERVICE can also be obtained as an attribute of the Context.
  • PowerManager can be imported using from ... import ... syntax, as shown here.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ThinkNaive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants