Question How to upload files in background without interruption?

Search This thread

Hendrix7

Senior Member
Nov 18, 2023
73
17
One of the things Windows and Linux computers were better at two decades ago than today's smartphones is uploading files to the Internet.

Even modern smartphones are hardly able to upload large files through their internet browser in a background tab or while using other apps. Sometimes the file upload just interrupts and shows an error, other times the upload page unloads completely and reloads when reopened, meaning all upload progress is gone.

When the smartphone is in stand-by mode, the upload gets interrupted, even with power saving deactivated. You can not lock your phone's screen without interrupting the upload, so you can not leave your smartphone unattended during an active upload, where as a Windows or Linux computer can upload files while the screen is locked. It just works.

Is there any way to make Android handle background file uploads well? A hidden developer setting? Battery consumption does not matter for the duration of the upload.
 

xXx yYy

Senior Member
Feb 4, 2017
2,994
18
610
You're right, background file uploads on smartphones have limitations compared to traditional computers. AFAIK there are usually no hidden settings specifically for background uploads. Battery optimization settings might have some impact, but prioritize overall system performance.

Possible Workarounds for Background Uploads:

Dedicated Upload Apps:

Many cloud storage services (Dropbox, Google Drive) have dedicated apps that handle uploads efficiently, even in the background.

WorkManager:
This built-in Android library allows scheduling background tasks like uploads with specific constraints (e.g., only when Wi-Fi is connected). It requires some coding knowledge.

Third-Party Libraries:
Libraries like "Android Upload Service" offer background upload functionalities with progress notifications. These also require coding knowledge.