using DownloadManager on Android PostProfileInit

7 views
Skip to first unread message

Demetrios Tsillas

unread,
Apr 19, 2018, 4:10:22 PM4/19/18
to Chromium-dev
I have a component which needs to download a file on startup.

On the desktop I use the DownloadManager, calling DownloadUrl from PostProfileInit. Seems to work great.

But on Android this gets DownloadItem::INTERRUPTED.

It looks like I reach PostProfileInit but chromium is not yet ready to run. It asks if I want to log into my account. Could it be interrupting downloads at this point?

Is there a better place to call DownloadUrl?

thanks!!!
-Jim.

Demetrios Tsillas

unread,
Apr 19, 2018, 4:30:25 PM4/19/18
to Chromium-dev
Ok I figure out that if I call CanResume and then (if that returns true) call Resume (on the DownloadItem) it works!!!
Reply all
Reply to author
Forward
0 new messages