G geoffharper Member Licensed User Longtime User Oct 11, 2016 #1 Hello, 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. Thanks! -Geoff Attachments iplg.zip iplg.zip 74 KB · Views: 358
Hello, 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. Thanks! -Geoff
G geoffharper Member Licensed User Longtime User Oct 11, 2016 #2 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 Attachments HttpclientError.png 8.9 KB · Views: 462 HttpclientError.png 8.9 KB · Views: 542 Upvote 0
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
Erel B4X founder Staff member Licensed User Longtime User Oct 11, 2016 #3 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. https://www.b4x.com/android/forum/threads/18992/#content Upvote 0
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. https://www.b4x.com/android/forum/threads/18992/#content
G geoffharper Member Licensed User Longtime User Oct 11, 2016 #4 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. Attachments iplg.zip iplg.zip 9.6 KB · Views: 372 Upvote 0
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.
Erel B4X founder Staff member Licensed User Longtime User Oct 11, 2016 #5 Your code is based on the very old HttpUtils module. You need to update it and use HttpJob. See the tutorial. Upvote 0
Your code is based on the very old HttpUtils module. You need to update it and use HttpJob. See the tutorial.
G geoffharper Member Licensed User Longtime User Oct 11, 2016 #6 Thanks! Mentioning "HttpJob" was the key for me. It took me a while to find the right info but I did and it works! Upvote 0
Thanks! Mentioning "HttpJob" was the key for me. It took me a while to find the right info but I did and it works!