Replies: 1 comment 4 replies
-
Mobile platforms don't behave the same as desktop platforms - you can't just start a thread and have it continue to run in the background while the app isn't in the foreground. I believe an Android activity can be configured to allow this but it's generally not advisable because it has a bad impact on battery usage. Android's documentation has a detailed discussion of the ways you can deal with "background" activity. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wrote a program about android app which it can keep running in the background like the music app. But it run a while, it will suspend. I'm eager to know how to implement it.
This is similar code.
Beta Was this translation helpful? Give feedback.
All reactions