Bug #2908
move webserver to its own Service
Status: | Closed | Start date: | 01/24/2014 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | hans | % Done: | 0% | |
Category: | - | |||
Target version: | Integrate Kerplapp into FDroid | |||
Component: |
Description
right now, the Kerplapp webserver is run in a thread off of the main UI thread. It should be run in its own Service
so that it doesn't get killed by things like a screen rotate in KerplappActivity
.
Associated revisions
force main screen to portrait mode to prevent crashes on rotate
This should be handled better, like having the webserver running in its own
Service. For now, we just force KerplappActivity to always be portrait,
then we don't need to think about screen rotation.
refs #2908
move webserver to a service for hosting all swapping stuff
The webserver thread is now in a separate Service that is meant to host all
the stuff related to swapping repos and apps. Anything related to swapping
that needs to occur in the background so that the user can do whatever with
FDroid should go in this service. That then provides an easy way to start
and stop swapping as well as provide a notification for when swapping is
active.
create RESTART msg and wire it up to LocalRepoService
This is needed to restart the webserver when the wifi or IP address changes
so that it can bind to the new address. I added a STOP and START message
for good measure, they will be useful for controlling the webserver based
on the status of swapping.
move LocalRepoService handling to FDroidApp
This provides very easy to use way to start, stop, and restart the local
repo from anywhere in the app, without needing any special context or info.
run LocalRepoService as a unkillable foreground Service
This also provides a unkillable notification. Since the local repo is only
supposed to be running while users are actively in the swap process, it
makes sense to make this a permanent, unclearable notification.
History
#1 Updated by hans over 3 years ago
- Status changed from New to Resolved
#2 Updated by hans over 3 years ago
Applied in changeset kerplapp|commit:aa3daf2703b2991cb84f668bf10eee11a9ad6aa6.
#3 Updated by hans over 3 years ago
Applied in changeset kerplapp|commit:6b9b5ce2a356035c7341fd83fc76ac7f34ae68dd.
#4 Updated by hans over 3 years ago
- Status changed from Resolved to Closed
- Assignee set to hans