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
Top