Android Question Error in job in DownloadService

Juzer Hussain

Active Member
Licensed User
Longtime User
Hi All,

I am finding an error in download service module when calling a sub
CallSubDelayed2(DownloadService, "StartDownload", dd)

In this line ----
CallSubDelayed3(jt.Data.Target, jt.Data.EventName & "_Progress", jt.CountingStream.Count, jt.Total)

The error is
java.lang.RuntimeException: Object should first be initialized (CountingOutputStream).

I am using OkHTTpUtils2. Is there any work around without adding HTTPUtils2Service source.

Can someone pls give some clue.

Thanks
Juzer
 
Last edited:

DonManfred

Expert
Licensed User
Longtime User
Why are you using this old Code?

The very 1st sentence in that thread is stating.
Better to use: https://www.b4x.com/android/forum/threads/simple-progress-http-download.127214/#post-796463
 
Upvote 1

Juzer Hussain

Active Member
Licensed User
Longtime User
Thanks DonManfred for such quick response,
I saw the thread, do you suggest to not to use DownloadService at all.
 
Upvote 0

Similar Threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…