B4A Tutorial [B4X] OkHttpUtils2 with Wait For - Erel    
Dec 25, 2025   
(60 reactions)   
tags: image, wait, Download, Http MySql, Wait For, ws have a single sub that handles all requests results.
Simplest example:
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
Example of downloading a quote from a quotes service:
Sub DownloadQuote
Dim j As HttpJob
j.Initialize("", Me) 'name is empty as it is no longer needed
j.Download("http://quotesondesign.com/wp-json/posts?filter...
B4A Code Snippet Draw on top of other apps permission - Erel    
Sep 5, 2023   
(19 reactions)Starting from Android 6 a special permission is required if you want to use the SYSTEM_ALERT_WINDOW permission. This permission is not related to the runtime permissions.
You can put this code in a class to check whether your app has permission and open the settings page if needed:
Sub Class_Globals
Private ion As Object
Private phone As Phone
End Sub
Public Sub Initialize
End Sub
Public...
Share My Creation [Web][SithasoDaisy] Revolutionize Your Ride: The Ultimate Vehicle Expense Tracker App using Api Key Secure MySQL REST API on top of HTTPS - Mashiane    
Apr 30, 2024   
(2 reactions)-webapps-using-api-keys-on-top-of-https.160849/#content
https://www.b4x.com/android/forum/threads/web-sithasodaisy-secure-crud-mysql-rest-api-web-app-using-api-key-on-top-of-https.160854/#content...
link:
?
demo
thanks Mashiane
Wow, you deployed the Secure Api Key MySQL REST API demo, wonderful. Glad ...
link: 153318
153319
153320...
link: 153313
153314
153315...
Share My Creation [Web][SithasoDaisy] Secure CRUD MySQL REST API Web App using Api Key on top of HTTPS - Mashiane    
Apr 30, 2024. This should be deployed on HTTPS.
153321
153263
153264
153265
153266
153267
153268
PGt5HInh55s
Related content
https://www.b4x.com/android/forum/threads/web-creating-secure-mysql-rest-api-based-webapps-using-api-keys-on-top-of-https.160849/#post-987167
Source Code?
If you are subscribed... required fields
Each action to the REST API requires the API Key.
The MySQL Webserver should run on HTTPS...
B4A Tutorial [B4X] OkHttpUtils2 / iHttpUtils2 and accept all option - Erel    
Jul 27, 2025   
(17 reactions)Note that OkHttpUtils2, jOkHttpUtils2 and iHttpUtils2 are actually the exact same b4x library.
Starting from v2.90 it is very simple to initialize the internal http client with the 'accept all' option.
The accept all option means that certificates will not be validated.
It is done... conditional symbol:
HU2_PUBLIC - makes the http client variable (hc) a public variable. This can be used in...: https://www.b4x.com/android/forum/threads/ntlm-again.110485/#post-690641
Note that in...
B4A Library OkHttp - Replaces the Http library - Erel    
Mar 14, 2018   
(22 reactions)   
tags: WebservicesOkHttpUtils2 source code: OkHttpUtils2 / iHttpUtils2 / HttpUtils2 source code
It is included as an internal library.
Usage: OkHttpUtils2 with Wait For
The current Http library is based on the Android version of Apache HttpClient. Google has stopped updating this SDK a long time ago and... implementation.
Note that if you are using HttpUtils2 (as you should) it is also based on Http library.
The OkHttp library is based on the OkHttp SDK: http://square.github.io/okhttp/
As this is a newer SDK...
B4A Tutorial Download huge files with HttpUtils2 - Erel    
Jul 25, 2021   
(18 reactions)   
tags: download, erel, download with progressBetter to use: https://www.b4x.com/android/forum/threads/simple-progress-http-download.127214/#post-796463
The attached project includes a slightly modified version of HttpUtils2 and a new service... size.
http://www.b4x.com/basic4android/images/SS-2013-06-13_17.34.35.png
It is very simple to use...) & "KB"
End Sub
Sub dd_Complete(Job As HttpJob)
Log("Job completed: " &... are required:
OkHttp
StringUtils
Phone (required in order to acquire a partial lock during the download...
B4J Library [B4X] xHttpServer (Http Server + jQuery) - Star-Dust    
Oct 20, 2026   
(39 reactions)It is a personal project of mine that I started as a hobby on B4i and it has become an interesting project, so that I have modified it to be multiplatform.
It is an http server, which allows a browser to navigate on html pages stored on the device. In addition, dynamic pages can also be created....
aHttpServer
Author: Star-Dust
Version: 0.83
QueryElement
Events:
change (Resp As ServletResponse... the SendString
Properties:
OutputStream As OutputStream
Query As QueryElement
httpServer
Events...
Bug? iTopNotification cutted out [Library] - Mike1970    
Dec 6, 2019Hi, I tried out the iTopNotification Library.
The problem is that for the iPhones with the notch, the notification is showing cutted out:
86135...
B4A Question Needing okHTTP support for Android 4.x - JakeBullet70    
Jun 22, 2022Hi all.
Working on an app that will NEVER see the play store and will be open source, GITHUB style. Anyway i want it to run on Android 4.x and above.
Point being to re claim all those old Android devices every one just tosses in a drawer or the garbage dump and never use again.
Am using the latest B4A and ran into issues where some libraries need a a newer API then the old phones . tablets have.
1st problem is OkHttpClient. It wants API level 21, I believe I need 16.
Question, Should I go...
Page: 1  
2  
3  
4  
5  
6  
7