bernardR Member Licensed User Longtime User May 1, 2022 #1 Hello, The following code does not work with android 4.4.2. Is there a solution allowing an https request 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 I have read https://www.b4x.com/android/forum/threads/download-huge-files-with-httputils2.30220/ Thanks
Hello, The following code does not work with android 4.4.2. Is there a solution allowing an https request 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 I have read https://www.b4x.com/android/forum/threads/download-huge-files-with-httputils2.30220/ Thanks
Erel B4X founder Staff member Licensed User Longtime User May 1, 2022 #2 The minimum version for OkHttp is Android 5. If supporting Android 4 is important for you then you will need to use an older version of OkHttp. Upvote 0
The minimum version for OkHttp is Android 5. If supporting Android 4 is important for you then you will need to use an older version of OkHttp.
bernardR Member Licensed User Longtime User May 1, 2022 #3 It is important for me. How to make 2 versions of the same library coexist in the b4a ide ? Have you an example? This article https://stackoverflow.com/questions/45877125/enable-tls-1-2-in-android-4-4 talks about the possibility of using TLS 1.2 on kitkat. Is this possible with b4a? Would it be enough to use the latest version of OhHttp ? How to do in this case? Thanks very much Last edited: May 1, 2022 Upvote 0
It is important for me. How to make 2 versions of the same library coexist in the b4a ide ? Have you an example? This article https://stackoverflow.com/questions/45877125/enable-tls-1-2-in-android-4-4 talks about the possibility of using TLS 1.2 on kitkat. Is this possible with b4a? Would it be enough to use the latest version of OhHttp ? How to do in this case? Thanks very much
Erel B4X founder Staff member Licensed User Longtime User May 2, 2022 #4 Use the older version. The new version is better but there is nothing problematic with using the old version You can use both libraries by renaming one of the libraries but you will also need to rename the dependency name in other libraries. Not worth the hassle. TLS 1.2 on Android 4 devices: https://www.b4x.com/android/forum/threads/ssl-websocket-client.88472/page-2#post-560044 BTW, why do you need to support Android 4 devices? Upvote 0
Use the older version. The new version is better but there is nothing problematic with using the old version You can use both libraries by renaming one of the libraries but you will also need to rename the dependency name in other libraries. Not worth the hassle. TLS 1.2 on Android 4 devices: https://www.b4x.com/android/forum/threads/ssl-websocket-client.88472/page-2#post-560044 BTW, why do you need to support Android 4 devices?
bernardR Member Licensed User Longtime User May 2, 2022 #5 Thank you. I have replaced the okHTTP library (ok* files) by those of b4a_11'20. job.Download("https://www.google.com") is ok But a request https with job.PostMultipart produces an error on Android 4.4.2: ResponseError. Reason: javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x63731528: Failure in SSL library, usually a protocol error Upvote 0
Thank you. I have replaced the okHTTP library (ok* files) by those of b4a_11'20. job.Download("https://www.google.com") is ok But a request https with job.PostMultipart produces an error on Android 4.4.2: ResponseError. Reason: javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x63731528: Failure in SSL library, usually a protocol error
Erel B4X founder Staff member Licensed User Longtime User May 3, 2022 #6 " TLS 1.2 on Android 4 devices: https://www.b4x.com/android/forum/threads/ssl-websocket-client.88472/page-2#post-560044 BTW, why do you need to support Android 4 devices? " Upvote 0
" TLS 1.2 on Android 4 devices: https://www.b4x.com/android/forum/threads/ssl-websocket-client.88472/page-2#post-560044 BTW, why do you need to support Android 4 devices? "
bernardR Member Licensed User Longtime User May 3, 2022 #7 Hello Erel, I have some users (children) of an online word game who post their solution with an old smartphone under kitkat. My app is non-google. Upvote 0
Hello Erel, I have some users (children) of an online word game who post their solution with an old smartphone under kitkat. My app is non-google.