I have posted my entire project zipped. I really haven't started it yet - I wanted to get the http communication stuff working first. I try things I've seen posted here and it just doesn't work.
Sorry - I didn't post the error message when I try to compile it.
Error message is a uploaded image file. The text is below.
B4A version: 6.30
Parsing code. Error
Error parsing program.
Error description: Unknown type: httpclient
Are you missing a library reference?
Occurred on line: 7 (HttpUtilsService)
Dim hc As HttpClient
You need to add a reference to Http library. However the correct thing to do is to remove HttpUtilsService and HttpUtils, and instead use OkHttpUtil2 library.
It is simpler and more powerful.
Thanks for the reply! I have attached a .zip of my entire project again after changes. I got the errors below. Then I tried adding the HTTP library and I got the same result.
B4A version: 6.30
Parsing code. Error
Error parsing program.
Error description: Undeclared variable 'httputils' is used before it was assigned any value.
Occurred on line: 38 (Main)
HttpUtils.CallbackActivity = "MainScreen" 'Current activity name.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.