B4J Question Download a file with progressbar

ThRuST

Well-Known Member
Licensed User
Longtime User
I want to download a file using OkHttpUtils2 and display a progressbar while downloading.

And once the download is complete save the file to the harddrive.

How would you do this?
 

ThRuST

Well-Known Member
Licensed User
Longtime User
@xulihang That post is more than 6 years old. DownloadService is depricated and no longer compatible with the latest jOkHttpUtils2 standard. It causes a conflict.

Here's a code I started. Someone can modify it to meet the new requirements with a download que.

Requires Library:
jOKHttpUtils2 v2.80+

Process Globals

AppStart
DownloadFile

Initialization
 
Upvote 0

ThRuST

Well-Known Member
Licensed User
Longtime User
and can be safely used

How can the older service modules for the progress bar and the latest OkHttpUtils2 library be added at the same time? It generated an error message saying the library is allready added. Thereby my post. Please provide a working example that we all can follow.
 
Upvote 0

ThRuST

Well-Known Member
Licensed User
Longtime User
A source code example would be nice that displays options to download any of the latest B4X products and displays the current available version. Downloaded with a progressbar of course
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…