httpjob

  1. T

    Android Question Http Requests - Problem after restart

    Hello everyone. I face a problem and I can not find any solution. I have create a test application using Default Project in B4A IDE that when I press or long press a button I make a http job. The code in the Main Activity is the follow: #Region Project Attributes #ApplicationLabel...
  2. H

    B4J Question What method should I use to initiate a request

    This is what making a correct request with postman looks like.Don't worry about the garbled code in the return, because it's encrypted data.When I tried to make an http request with postbytes, I didn't get the Postman-like garble I expected. It returns no content in the response body except for...
  3. Cainsoft

    Android Question Android API 33 - services/receiver vs http

    Hi, I had a problem for which there was no solution: https://www.b4x.com/android/forum/threads/startreceiverat-okhttputils2-during-phone-sleep.149687/ Somehow I managed to get a service to run in the "foreground" under Android 13 (API 33). What's interesting is that this service doesn't stop...
  4. A

    Android Question HttpJob and Activity_Pause event

    I have a HttpJob that will consume a webservice. How the "HttpJob" will behave if the user clicks on a home button? Is it possible for HttpJob to continue woring while the app is in background? Thanks.
  5. naengi

    Android Question HttpJob timeout in receiver

    Hello I use HTTPJob in the receiver There is no problem when the program is running and all requests are sent correctly But When I close the program, I get a timeout error or Unable to resolve host error ? What is the problem? And one more question, is it still possible to run a service in...
  6. Rosin

    Android Question Http problem in 5g situation

    Hey guys,here i am using the httpjob to get the cookie from my school's websit,but i have noticed that when i am using wifi,i send the get request,and it respond very quickly...but when i am using my 5g network instead of wifi...it will wait...wait until 30s(the timeout) though it maybe have...
  7. D

    Android Question HttpJob not connecting to Localhost

    I have a weird error and hope someone can point me in the right direction. I have a backend API which I am running on localhost for Dev purposes. The API works perfectly when I test it using Postman. It also used to also work perfectly when I was using B4A. Unfortunately, it just stopped...
  8. Lakhtin_V

    Android Question Older versions (SDK19) conflict with the web SQL server

    Hi! In my application on new versions of android everything works. An error appeared on the old sdk19. Previously, in their other applications, everything worked well for both old and new ones. Help deal with the problem java.lang.NullPointerException at...
  9. N

    Android Question trouble implement Httpjobs

    I want to send json and receive json from url. May some genius can tell where wrong oh my code, Thanks. This my json url curl --location --request POST 'http://192.168.5.80:9090/v1.0/Login/GetLogin' \ --header 'Content-Type: application/json' \ --data-raw '{ "Hp":"08123456"...
  10. P

    Bug? httpjob bug and cache

    I guess i found a bug on httpjob, and found out that httpjob also caches information,which in 2016 @Erel said it doesn't The specific error was: Error occurred on line: 292 (HttpJob) java.io.FileNotFoundException: /data/user/0/b4a.example/cache/1: open failed: ENOENT (No such file or...
  11. 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...
  12. N

    Android Question HttpJob headers

    Hello, I have searched the forum but haven't found anything related. I would like to set specific payload encoding. what is the default encoding used when there is a payload? Also, how can I get headers? Dim j As HttpJob j.Initialize("", Me) j.PostString(URL, "&id=3") ''get headers...
  13. HassanProgrammer

    Android Question Secure connection to servers and hosts

    Hello, How did Telegram, WhatsApp, YouTube, etc. establish their security? A hacker can decompile my program and gain access to my links or IP server and abuse it. For example, send thousands of requests to my server and host in a row. Or enter my api link in the browser and see or change user...
  14. HassanProgrammer

    Android Question Download the activity and start it

    I want to upload an activity on the server and download it from the server in the main activity and then start it. How do I do that?
  15. H

    Android Question What is the effect of httpJob if placed inside the function?

    hello, I understand that an httpJob is a resumablesub which means other functions below it will execute even it is not finished except when placed inside if job.Success statement. But, what is the effect of httpJob if placed inside the function? Is there a difference if the function returns a...
  16. H

    Android Question How to control the flow of the HttpJob?

    Hello, With HttpJob, we write code like this: Dim j As HttpJob ... Wait For (j) JobDone(j As HttpJob) If j.Success Then foo() else ... end if bar() This will run the bar() even the foo() is not finished. Is there a way to let the foo() finished before the bar() begins? Thanks!
  17. W

    Android Code Snippet Conversion from CUrl to B4A

    It is quite convenient to upload images to public cloud server and share the image link to other people rather than share the real image files directly! The following code snippets showed how to upload and search images by CUrl command (provided by: https://apidocs.imgur.com/) and by B4A syntax...
  18. Abdull Cadre

    Share My Creation [Free] Weather App

    Building a Weather App One of my recent projects required me to build a weather app that would work with an API of my choice. This was my first introduction to working with a weather API, so I knew there was going to be a steep learning curve, but I was excited about the chance to finally get...
  19. D

    B4J Question Error on request inside a server Handler (java.lang.InterruptedException)

    Hello! I'm gettin this error but i have no clue of what's happening because it works good for days before happen. I suspect that is caused by a request that I make inside a handler but I'm not sure. java.lang.RuntimeException: java.lang.InterruptedException at...
  20. J

    Android Question HttpJob and Sending Message to waiting Queue ...

    Hello, We have a problem with the HttpJob: The JobDone never runs, and the log contains the following message: "sending message to waiting queue of uninitialized activity (submitjob)" my code : Dim job As HttpJob job.Initialize("", Me) job.Download("https://www.google.com") '...
Top