Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • S Snowflake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 73
    • Issues 73
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • Anti-censorship
  • Pluggable Transports
  • Snowflake
  • Issues
  • #34268
Closed
Open
Created May 21, 2020 by HashikD@HashikDDeveloper

Creating a service to do the work in the background and implementing a wakelock.

For the application to act as a proxy in the background we need to run it as a service. In Android there are two types of services... Background service: Counter-intuitively this is not what we are going to use since the Android system will kill the service after the user leaves the application.\


Foreground service: This service requires us to run a notification constantly. But this service will work even if the user leaves the application.\ Problem: Service gets killed if the screen is turned off.\ Solution: Implementing Android's Wakelock feature so that the Android system will not kill our service.

Assignee
Assign to
Time tracking