klingon467 Member Licensed User Longtime User Aug 31, 2015 #1 Hi i have problems for compiling "DownloadServices" example ia have add HTTP libraires and core... but i recevied this message: it will block here: Code: Sub Service_Create HC.Initialize("HC") Notification1.Initialize Notification1.Icon = "icon" 'use the application icon file for the notification Notification1.Vibrate = False End Sub B4A version 4.30 Parsing code. 0.01 Compiling code. 0.04 Compiling layouts code. 0.02 Generating R file. 0.08 Compiling generated Java code. Error B4A line: 20 HC.Initialize(\ javac 1.8.0_60 src\anywheresoftware\b4a\samples\downloadservice\downloadservice.java:191: error: cannot access ClientProtocolException _hc.Initialize("HC"); ^ class file for org.apache.http.client.ClientProtocolException not found Click to expand... where is the error? thanks
Hi i have problems for compiling "DownloadServices" example ia have add HTTP libraires and core... but i recevied this message: it will block here: Code: Sub Service_Create HC.Initialize("HC") Notification1.Initialize Notification1.Icon = "icon" 'use the application icon file for the notification Notification1.Vibrate = False End Sub B4A version 4.30 Parsing code. 0.01 Compiling code. 0.04 Compiling layouts code. 0.02 Generating R file. 0.08 Compiling generated Java code. Error B4A line: 20 HC.Initialize(\ javac 1.8.0_60 src\anywheresoftware\b4a\samples\downloadservice\downloadservice.java:191: error: cannot access ClientProtocolException _hc.Initialize("HC"); ^ class file for org.apache.http.client.ClientProtocolException not found Click to expand... where is the error? thanks
DonManfred Expert Licensed User Longtime User Aug 31, 2015 #2 If you are using android 23 (6) you need to update your httputils libraries with the new okhttp Upvote 0
klingon467 Member Licensed User Longtime User Aug 31, 2015 #3 DonManfred said: If you are using android 23 (6) you need to update your httputils libraries with the new okhttp Click to expand... where can I download these? Upvote 0
DonManfred said: If you are using android 23 (6) you need to update your httputils libraries with the new okhttp Click to expand... where can I download these?
Erel B4X founder Staff member Licensed User Longtime User Aug 31, 2015 #4 DownloadService is a very old example. I recommend you to use HttpUtils2. You can find OkHTTP with a simple search: https://www.b4x.com/search?query=OkHttp Upvote 0
DownloadService is a very old example. I recommend you to use HttpUtils2. You can find OkHTTP with a simple search: https://www.b4x.com/search?query=OkHttp