Android Question Download huge files with HttpUtils2 in B4xpages

ProjectGroup19

Active Member
Licensed User
Download huge files with HttpUtils2

B4X:
Sub btnDownload_Click
   Dim dd As DownloadData
   dd.url = link1 '<--- download link
   dd.EventName = "dd"
   dd.Target = Me
   CallSubDelayed2(DownloadService, "StartDownload", dd)
End Sub

Please, i used to use the above example to download files with okhttp2 and it worked as expected but its not working for me as i am using b4xpages.
B4X:
dd.Target = Me
this line gives an error because the pages are regular class so i change it to
B4X:
dd.Target = Main
the error is now gone but nothing happens, the download is not started.

Please, any help?
 
Last edited:
Top