Replies: 2 comments 5 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
-
Have you find a solution? I want to make a local proxy and need to setup a foreground service too. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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