guardianproject / guardianproject/tor-android

document how to use TorService with foreground priority via binding

Open
#64 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
286
Forks
79
PR merge metrics
No merged PRs in 30d

Description

Android gives "foreground" priority to the activity that is currently visible. Things that are at the foreground priority are the last to be killed. With `Service` instances, it is possible to set the service to be permanently at the "foreground" priority as long as there is a permanent notification. It is also possible for a `Service` to get foreground priority if the currently active screen is bound to the `Service` using [`BIND_IMPORTANT`](https://developer.android.com/reference/android/content/Context#BIND_IMPORTANT).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.