androidx / androidx/media

Downloads stuck if app is force closed

Open
#831 3 comments 0 reactions 1 assignee View on GitHub

@tianyif is already working on this.

Since Nov 22, 2023.

needs triage question
Dominant language
Java
Stars
3k
Forks
955
Avg merge
12d 14h
Merged PRs (30d)
2

Description

I've managed to repro this with the horologist app, for instance, and it also happens with my own app:

If I start a couple downloads, and force stop the app before they finish (either with adb force stop or in the Android task manager), the downloads wont resume when the app is restarted.

I know this is due to the DownloadService not being started, because once I start another download those pending downloads start downloading again. I can start the service manually with:

    DownloadService.start(context, SxmDownloadService::class.java)

But is this the right way to achieve what i need? or should i be calling resumeDownloads?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.