1. BrotherEarth

    Android Question OkHttpUtils2 - PostString with Download to receive data from the POST

    Hi, it has been a while since I used B4A, and now it seems to be the fastest way to build Proofs of Concept apps super fast and easy! How can we POST then receive the response payload? Background: We have many data web and cloud APIs. When we POST a body of JSON data (for a new record in the...
  2. M

    Android Question OKHttpUtils2 Hard Refresh?

    Hello Community, Well, I was working with PHP files for a project on the server side, when I ran into a problem. After changing the PHP file or changing MYSQL, the string received from the server as a Result is the same as the previous string and has not changed. Due to the caching of...
  3. Myr0n

    Android Question Alternative to okhttp 1.5?

    Hello I am using okhttputils2 version 3.0, recently I made a change in an old project app that runs in some devices with android 4.x My problem now is that since the latest version of okhttp 1.5 the minimum sdk version is 21 (android 5) my old project in devices android 4.x has some issues...
  4. J

    Android Question B4A version 11.5 (OkHttpUtils2) bug?

    '*****B4A Version 10.0 ~ 11.0 No Errors , Only version 11.5 error (Same OkHttpUtils2 Version 3.00)***** Dim StrMyHTTPS As String StrMyHTTPS = "https://www.~~/~~?access_token=" & StrToken & user_screen_name = " & StrID & " & user_password = " & StrPassSHA256" Dim HttpMyJob As...
  5. king_mkv

    Android Question post requests in b4a

    Hello my friends I want to send a request in Basic Four Android and show a response to the user, depending on the response I get from the server. I used to work with Python, and there it was very easy to use a site to convert curls to Python commands. Is there a way I can request a server with a...
  6. yo3ggx

    Android Question OKHttpUtils2 versions

    Hello, In my B4A 11.50 it shows that the online version of the library is older than the included one: I know that v3.00 require Android 5 and up. What is the latest OkHttpUtils2 version that supports Android 4.4? I want my app to be supported on this version too. Thank you.
  7. J

    Android Question B4XPages project hangs on download of 2MB file

    I'm using 'Wait For' in a B4XPages project calling the OkhttpUtils2 library to download a 2MB file. I've attached a zip file of the project. The relevant code in B4XHTTPSPage (as B4XMainPage is just code for a button to show B4XHTTPSPage) is: Sub Class_Globals Private Root As B4XView 'ignore...
  8. J

    Android Question B4XPages download from https url with progress bar and wait for for it to finsh

    I'm using B4XPages to develop for Android using B4A. I want to download a SQLite database of just a few MB from a https url and wait for it to finish. I'm using the example code in old thread...
  9. P

    Android Question Download huge files with HttpUtils2 in B4xpages

    Download huge files with HttpUtils2 Sub btnDownload_Click Dim dd As DownloadData dd.url = link1 '<--- download link dd.EventName = "dd" dd.Target = Me CallSubDelayed2(DownloadService, "StartDownload", dd) End Sub Please, i used to use the above example to download files with...
  10. W

    Android Question Http's Request's Timeout seems not be configured

    Hi, I am using library OkHttpUtils2 and find the timeout of Http's request sticked to around 20 seconds but cannot be assigned. My testing codes is: #Region Activity Attributes #FullScreen: False #IncludeTitle: True #End Region Sub Process_Globals 'These global variables will be...
  11. H

    Android Question Upload file, e.g. jpg using okHttUtils2

    A service or a server, not B4J server, is accepting the ff. HTTP PUT command. curl -vX PUT http://admin:password@ --data-binary @artwork.jpg -H "Content-Type:image/jpg" I tried the sample provided by the link...
  12. Erick Kalugdan

    Android Question Select file (like PDF) then upload via WebView or OkHttpUtils2

    I have a web app (written in PHP) which is accessed by a WebView in my B4A app. I need the user to select a file (like PDF) from his phone and upload it to my web app via form POST as multipart/form-data. Note that the file is outside my app's assets / internal directories. I can't seem to...
  13. A

    Android Question Block Incoming calls

    Hi all. Is it possible to block incoming calls? My app synchronizes with a server by using OkHTTPUtils2. Let's say I sent a request and waiting for a JobDone event to get a server response. At the same time an incoming call received. User accepted this this call and now my app get paused and...
  14. AriGharavi

    Android Question okhttputils2 Error - javax.net.ssl.SSLHandshakeException

    Hi guys! I have problem with sending request with okhttputils2 and httputils. this is my code : #Region Project Attributes #ApplicationLabel: B4A_register #VersionCode: 1 #VersionName: 'SupportedOrientations possible values: unspecified, landscape or portrait...
  15. B

    Android Question OkHTTPUtlis2 Connection problem on Android 10

    Hello, I post data to my server with OkHttpUtils2 and it works. But my server not have SSL and that is why my program does not work in Android 10. I do not know what to do to connect to the server in Android 10 without SSL.
  16. P

    Android Question OkHttpUtils2 2.82 / 2.91 compatibility issue

    Error with OkHttpUtils2 2.91 B4A Version: 9.80 Java Version: 8 Parsing code. Error Error parsing program. Error description: Unknown type: jobtag Are you missing a library reference? Error occurred on line: 74 (HttpUtils2Service) Dim jt As JobTag = j.Tag OkHttpUtils2 2.82 shipped with B4A...
  17. MohsenSaber2019

    Android Question B4A ResponseError. Reason: java.net.SocketException: Machine is not on the network, Response:

    Hi All. i wrote an app that connects to my ESP8266 local web server. everythings is ok on Android 4.4.2 . But in Android 7+ i'm facing a boring problem! I have written a function (named NetCheck) whose function is to check the status of the network. If the connected network is not the network...
  18. saeed10051

    Android Question How to get an array using okhttputils2

    I am using following php script and it is returning an array to me. How can i get the data out of this array as i am using j as httpjob, but httpjob does not have a get array type of method. $result = $conn->query("SELECT * FROM menuitems"); if ($result->num_rows > 0) { $rows = array()...
  19. A

    Android Question Wait For with OkHTTPUtils2 and CallSubDelayed

    Hi, I have a question. I created a small project (see the attachment) where I tried to learn how to work with a subject. I created a class where I put all the logic -the main procedure in this class calls a private sub that sends request to the server Sub Class_Globals Public FacilityID...
  20. Songwut K.

    Android Example B4A and PHP REST

    Thanks @Erel for free version that I plan to buy but donate instead. I'll share my B4A knowledge in Thailand, your great product must popular, later. PHP is well known for web developer, it cheap resource and easy to learn in Thailand. Backend system easy manage by PHP & MySQL but till now...