Hupl
Hupl copied to clipboard
stayin' alive
Uploads/notifications sometimes get killed by a hupl activity being closed (swiping it from the recent apps screen).
The obvious answer would be a service doing all the uploading and notifying, but it turns out those get killed just as easily. The only exception being a service using startForeground(), but that necessarily binds the service to a notification, that must stay visible and can't be cancelled until the entire service can be stopped. And that's of course a massive pain in the arse, if you want multiple notifications at once, that are all dismissible at any time.
Interestingly enough, the uploader selection disappearing by calling finish() on itself, after you've started an upload, doesn't kill the process, even though the activity's gone. ┐(´д`)┌
Update: v2 does use a service with startForeground(), which keeps it from being killed by the user closing an activity. But only while something's uploading; after all uploads are finished, closing an activity can still clear the notifications. (Good job there's now a history, innit?)
literally nothing you can do about things like that