Android Question Shared code between B4i and B4A using HttpJob

Alberto Iglesias

Well-Known Member
Licensed User
Longtime User
In the process to share my code between this platforms, I have to know what's the best practice to
create some method on a function on Code Module or b4xLib to use httpJob or other process to download, like this

B4X:
Dim j As HttpJob
j.Initialize("", Me)
j.Download("https://www.google.com")
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
   Log(j.GetString)
End If
j.Release

in Code Module we can't use "me" to receive the response, I'm thinking in use b4xlib, or have another best practice to create this???

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